JohnLawton
October 21st, 2002, 06:31 AM
Hi
I am using Flash to produce a simulation of a DOS system that uses the keyboard to do lots of stuff.
At one point I have to get the sim to react to an F10 key press. So I use the following code as a frame action:
_root.onEnterFrame = function() {
if (key.isDown(121)) {
gotoAndPlay("script005");
}
};
And this works.
However, after this, I need to trap some cursor key movement and that is where it's all going a bit pear shaped.
F10 seems to also be trapped by the browser (Internet Explorer 6) so Up, Down, Left and Right all start to open and navigate around the I.E. menus rather than being trapped by Flash.
Any thoughts?
Cheers
John :-)
I am using Flash to produce a simulation of a DOS system that uses the keyboard to do lots of stuff.
At one point I have to get the sim to react to an F10 key press. So I use the following code as a frame action:
_root.onEnterFrame = function() {
if (key.isDown(121)) {
gotoAndPlay("script005");
}
};
And this works.
However, after this, I need to trap some cursor key movement and that is where it's all going a bit pear shaped.
F10 seems to also be trapped by the browser (Internet Explorer 6) so Up, Down, Left and Right all start to open and navigate around the I.E. menus rather than being trapped by Flash.
Any thoughts?
Cheers
John :-)