> does anyone know if it is somehow possible for a director
> movie to register
> a keydown event from within an _editable_ text field? ie.
> allow the user to
> enter text into a field and have director simultaneously
> register a keydown
> event for each keystroke

Yep...

You can put something along these lines in the field's sprite behavior:

on keyDown me
   beep
   pass
end

"pass" is the key here - if you intercept a keypress with a keyDown, you
have to use pass for it to actually enter the key into the field.
you can also check for the pressed keys with a case (or if) statement, and
choose which ones you want to pass and which ones you don't:

on keyDown me
  case the key of
    RETURN: nothing --don't enter it into the field
    SPACE: beep   --beep and don't enter
    "k":
        alert "K has been pressed!" --do something
        pass   --and enter into the field
    otherwise pass   --everything else, just enter into the field
 end case
end


Karina



[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