Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Minefield
Outline Text
Correct entry
Dr.Explain - help file tool
Scroll Buttons
fluidXtra
Atom
CPS Audio/MIDI Xtra
Library for the control of volume in Director
Creating Records - Valentina
 

 

 

Behavior Accept Only Alpha-Numeric Characters

Added on 7/8/1999

 

Compatibilities:
behavior D7 D8 Mac PC Shockwave

Rating:

Author: MediaMacros (website)

This behavior will restrict input of a field to specific keys.

--Copyright 1999 Chuck Neal
--chuck@mediamacros.com
--If you find this code helpful, send me an e-mail and let me know.  :-)

property spriteNum, letters

on keyDown me
  if (letters contains the key) then
    pass
  else
    beep
  end if
end

on getPropertyDescriptionList me
  p_list = [#letters : [#format : #string, #default : "abcdefghijklmnopqrstuvwxyz1234567890-", #comment : "Allowed characters:"]]
  return p_list
end

on getbehaviorDescription me
  return "This behavior will restrict input of a field to specific keys."
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail