At 15:25 -0500 01/28/2002, Bastien Bouchard wrote:
>I have to record an entry name in a field (the field size is fixed). How
>could i prevent the "return" key pressed by the user to be entered in the
>field?
Simplest way is probably to use a behavior attached to the sprite in the score:
on keyDown me
if the key = RETURN or the key = ENTER then
BEEP
dontPassEvent
else
pass
end if
END keyDown
That also grabs the keypad enter key as well as the standard keyboard
return. You don't have to include the beep, of course, but it serves
to let the user know you know he pressed a key.
--
Warren Ockrassa | http://www.nightwares.com/
Director help | Free files | Sample chapters | Freelance | Consulting
Author | Director 8.5 Shockwave Studio: A Beginner's Guide
Published by Osborne/McGraw-Hill
http://www.osborne.com/indexes/beginners_guides.shtml
[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!]