Hi, I also use the keyDownScript but in a behavior. Its good point is that a behavior only lives during its sprite span. So, it set the keyDownScript for the needed frames. _____ Luke Wigley wrote: > I usually use the keyDownScript and have a "focus manager" object send off > an event to the appropriate sprite. -- In a behavior on beginSprite me the keyDownScript = "sendSprite(" & me.spriteNum & ", #mHandleKeyDown)" end on endSprite me the keyDownScript = empty end > on mHandleKeyDown me > -- relevant sprites subscribe/remove themselves themselves > call(#mKeyDown, mySpritesWithFocus, the key, the keyCode) > end Good luck, Fumio Nonaka Attain Corporation Phone: +81-3-3255-4941 Fax: +81-3-3255-5998 mailto:[EMAIL PROTECTED] http://www.attainj.co.jp [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