Attach a behaviour to the field (in the score not in the cast lib) like this

on keyDown me
  if the key=ENTER or the key=RETURN then
    dontpassevent
  else
    pass
  end if
end

This works. Regards, Florian

Martin Bedard schrieb:
> 
> Hi list,
> 
> I'am working on new projet and i want to block the ENTER key on a text
> field entry ? (pass word for user)
> 
> I have try those script but the ENTER key is again active ?
> 
> on keyDown
> 
> if the key = ENTER then
>     pass
> else
>     pass
> end if
> 
> end keyDown
> 
> on keyDown
> 
> if the key = ENTER then
>     nothing
> end if
> 
> end keyDown
> 
> Must i attach the script directly on «the field » or the better place is
> 
> on the «sprite script» ?
> 
> Tank's
> 
> Martin
> 
> [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!]

[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