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: | Mike Kelly |
Date: | Wed, 3 Jan 2001 14:41:12 GMT |
Hi Helen,
You're absolutely right. It works once the browser has focus. Shouldn't be
a problem in my final movie - but I'll post more info if I find that it only
happens in certain circumstances or code formulations.
Many thanks,
Mike
----- Original Message -----
From: "Helen Triolo" <designeri-technica [dot] com>
To: <flasherchinwag [dot] com>
Sent: Wednesday, January 03, 2001 3:02 PM
Subject: Re: FLASH: I've got problems! No response to Key-Down events
> 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 helpchinwag [dot] com
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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 helpchinwag [dot] com
Replies
FLASH: I've got problems! No response to, Mike Kelly
Re: FLASH: I've got problems! No respons, Helen Triolo
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]