For AS2 I need to allow the user to press “Alt + N” to go to the next page, but the problem is that in Windows whenever Alt is pushed it takes focus off the flash embed and the keylistener never receive it.
Researching what to do, it seems that the solution is to use Javascript to disable the default action of the ALT key in Firefox (the browser it needs to run in). I’m not sure if this is the right path, and not exactly sure how to do it.
Well, you’ll need an external interface in the flash program; something like this:
Then you’ll need something like the following in the HTML you’re embedding the object in:
Also, make sure that the embed has the
allowScriptAccessattribute set to"always".I only tested this is Firefox (latest, Mac and Windows), so I don’t know at all if it works in other browsers. Hope this helps!