I lost you in there, particularly the part about starting movie B runs key 
up handlers in miaw a, particularly since B is supposed to launch A, so how 
is it that the handlers run in A when you start b?


Generally, a keyUp handler on a sprite doesn't mean much unless that sprite 
is a text field or something that can receive key presses.  Otherwise, how 
do you know which sprite the key was intended for?

Movie-wise, I haven't tried to test scenarios with keys in MIAWs, but I 
would guess that the movie handler that would succeed in getting the 
keypress would be the one associated with whatever stage had focus at the 
time.  You can have a bazillion windows open at a time (well, maybe 
32,767), but only one is the one with focus, and I'm guessing that if a 
keyup was generated, would be delivered to that movie only.  By clicking on 
the stage or sprite of one of your movies, you're changing the focus to 
that movie.

Given all you were talking about about A and B, would this make sense given 
that?  I got lost in your example, but would what I said apply and make sense?

- Tab



At 02:22 PM 6/23/01 +0200, Michael von Aichberger wrote:
>Hi List!
>
>As I didn't get any answers to my last posting, I will try reduce my request
>to one simple problem:
>
>I have a keyUp handler attached to a sprite in movie A. For testing purposes
>I have another keyUp handler in a MOVIE SCRIPT of movie A.
>
>When playing movie A, it works fine.
>
>Now I create a movie B, which runs movie A as MIAW. When I start movie B,
>the keyUp handlers are executed in MIAW A.
>
>HOWEVER: When I click with the mouse somewhere in MIAW A, and hit a key
>again, the keyUp handlers in MIAW A are not executed anymore, not that in
>the movie script and not that in the sprite script, even when I am clicking
>on that sprite.
>
>If I click somewhere on the stage of movie B and hit a key, this is
>recognized by movie B (I have a test movie script there too).
>
>Finally, when after that I click somewhere in MIAW A again and press a key,
>the keyUp handlers are executed again. Until I click somewhere else in MIAW
>A, then no keyUp handler isn't executed anymore.
>
>Strange, isn't it? Or did I make a mistake?
>
>Thanks a lot for all advice!
>
>Regards
>Michael von Aichberger
>
>
>[To remove yourself from this list, or to change to digest mode, go to
>http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
>email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
>Lingo-L is for learning and helping with programming Lingo.  Thanks!]


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to