Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: I've got problems! No response to Key-Down events
From: Helen Triolo
Date: Wed, 3 Jan 2001 14:19:11 GMT

Hi Mike,

I think the problem is that no keys will be responded to until the
browser has the focus, so you have to click once in the browser window
before pressing the right key. (I created a little movie with your code
and found that it would only work after clicking in the browser after an
F12 publish preview -- otherwise, as you say, it just sits and looks at
you and doesn't respond to any key presses). I don't know any way
around the problem other than adding something like a Start button to
force a set focus in the browser window.

Regards,
Helen
-----------------------------------------------------
i-Technica � http://i-technica.com � 301.424.6037
Flash Q/A archive: http://i-technica.com/flashlist

Mike Kelly wrote:
>
> Hello,
> I already sent this message under a different subject name, so sorry if
> you're reading it again.
>
> The Flash 5 movie I'm making has a movie clip animation which responds to
> key
> down events. When I test it out using Ctrl-Enter, it responds to these
> events OK. However, in an F12 preview (IE5.5) it just sits and stares at me
> as I key frantically away. The same problem occurs in Netscape 4.7. I'm
> playing other Flash 5 movies in both browsers with no problems, so my
> plug-in is up-to-date. Any ideas what might be going on?
>
> Here's a snippet of the relevant code.
>
> onClipEvent (load) {
> direction = 0;
> }
> onClipEvent (enterFrame) {
> if (Key.isDown(Key.RIGHT)) {
> direction = 5;
> }
> setProperty (_root.boystand, _x, _root.boystand._x + direction);
> }
>
> Thanks,
> Mike

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: I've got problems! No respons, Mike Kelly

Replies
  FLASH: I've got problems! No response to, Mike Kelly

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]