Hi Martin

on keyDown me
  vLength = sprite(me.spriteNum).member.text.length
  if vLength <= 6 then
    pass
  end if
end keyDown


Sincerely

Mark

--------------------------------------------
Mark R. Jonkman
Mark R. Jonkman Consulting
ADDRESS: 20 Windermere Crt., Guelph, ON, CANADA N1E 3L4
PHONE: 519-837-8509
EMAIL: [EMAIL PROTECTED]
--------------------------------------------

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Martin Bedard
> Sent: Monday, October 30, 2000 2:27 PM
> To: [EMAIL PROTECTED]
> Subject: <lingo-l> Text field.... char limit ?
>
>
> hi all,
>
> i just want to know how can i limit  a text field  entry to six char on
> a KeyDown script  ?
>
> i want to block the number of char in my text fiels to 6 and alert a
> message if it over !
>
> the field is "empty" on a startmovie and user must enter his personel
> number to access more.
>
> An short exemple will be appriciate !
>
>
>
> my actual bouton script is this one
>
> ----------------------------
> on mouseUp
>    sound stop 1
>   if  the text of member "id" = "" then
>     alert "Vous devez inscrire votre num�ro d'employ�"
>   else
>     validefolder
>
>   end if
> end
> -------------------------
>
>
> thank's
>
>
>
>
> [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