Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable Escape Key

Status
Not open for further replies.
Dec 24, 2001
857
GB
Is there a way to disable the escape key? Someone suggested I use ASCII and the CHR command but I'm not sure of how to do this in Flash.
The reason I want to do this is because we have an interactive presentation running and if the escape key is pressed, it exits. This wouldn't look very good to visitors so I was thinking that maybe using a key which is never used as the escape key would be a better idea (less chance of it being hit). Or I might just use CTRL+ALT+DEL...

Rgds
 
Use this:

fscommand("trapallkeys", "true");

in the first frame of your movie. That will stop the ESC key exiting the projector.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top