Pressing enter while testing it within Flash does do that… but thats only because while previewing in Flash the shortcut for “Play” is Enter. This does not happen in the standalone player, or on the web, just inside Flash.
But on the web if you right click it has the ability to play the movie. In that case before you publish your movie go to File/Publish Settings and in the HTML tab make sure you uncheck the “Show Menu” (or something like that) option. This will add extra code to your embed tag that removes the Play, Forward, Rewind, etc options from the right click menu.
Oh, sorry, I misunderstood your post. In that case you can use Listeners…
[AS]//create new object to listen to
keyListen = new Object();
//apply an onKeyDown dynamic event handler
keyListen.onKeyDown = function() {
//if the key that is down is NOT the enter key
//note: “!” is an expression for false (think of it as saying “not”)
if (!Key.isDown(Key.ENTER)) {
//pretty obvious here
//you can change these actions to whatever you want to do if any key (other than enter) has been pressed
trace(“enter key not pressed”);
}
};
//listen for when any keys are pressed
Key.addListener(keyListen);[/AS]
Apply those actions to a frame in the timeline.
[edit]oh yeah, and if you ever want the keys NOT to listen… just remove the key listener…
No prob… I have to go now… but just in case you didn’t see, I edited my last post on how to add/remove the listener for when you do and don’t want to have the keys being listened to.