Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Inno Setup Pro
Import Save File From Command Line
Anatomy of an Alpha Channel
Random Integer - Shuffle
Hyper Midi
DisplayMode Xtra
DirGames Discussion List
Library for the control of volume in Director
Display Mode
Director Crash on opening a cursor - Valentina
MediaMacros Xtras Mall
 

 

 

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

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail