> Really? I just tried creating a child object, put in a
> on keydown me
>       alert "key hit!"
> end
> 
> and got nothing.

Gawd, now you're going to make me think? ;-)

I think the way I did it was to create the key handler object in a frame
script, which has properties, ancestors, and the like--all the
attributes of an object, except it's not created with new, but with
beginSprite.

Something like this (Danger Will Robinson! Untested e-mail Lingo)

Frame script (a behavior):

property pKeyHandler

on beginSprite
   pKeyHandler = new(script "Key Handler")
end

Key Handler script (make sure it's a parent):

on keyDown me
  yada yada
end

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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