Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Drag Sprite with Hotspot
Mark's Taskbar v2
Gang Buster
Flashation Flash Menu Builder
Emboss trick
QTGrabSprite
MagicTools Xtras
Draw a line with lingo
3D Watcher
Quick mouseover
MediaMacros Xtras Mall
 

 

 

Behavior Which Keys

Added on 4/4/2001

 

Compatibilities:
behavior D6_5 D7 D8 Mac PC Shockwave

This item has not yet been rated

Author: RichieBisset

Drop on a field cast member then use the dialog box to specify which key strokes are allowed within that field.

property whichKeys

on keyDown me
  init me
end

on init me
  put the key into k
  if the whichKeys of me contains k then
    pass
    else
    if k = BACKSPACE then
      pass
    else
      if k = "." then
        pass
      else
        dontPassEvent
      end if
    end if
  end if
end

---

on getPropertyDescriptionList
  set p_list = [    #whichKeys: [ #comment: "Allowed Keys:",                     #format: #string,                    #default:  "1                  " ]                  ]
  return p_list
  
end

on getBehaviourDescription
  return "Lets you to specify which keystrokes are allowed within a specific field"
  
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