grimmwerks wrote
> Is there a better way? Seems strange that sprites can't get the keydown
> as they can any other event hiearchy...
Hi.
I usually use the keyDownScript and have a "focus manager" object send off
an event to the appropriate sprite.
eg
on startMovie
...
the keyDownScript = "mHandleKeyDown(gFocusMgr)"
end
and in the parent script
on mHandleKeyDown me
-- relevant sprites subscribe/remove themselves themselves
call(#mKeyDown, mySpritesWithFocus, the key, the keyCode)
end
The keyDownScript is useful because it gets the event first, and passes the
event by default.
--
Luke
[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!]