I have a movie clip instance on my stage and I want to place coding on it that'll allow the user to press any key on the keyboard so that they can proceed on to the next frame. The way I'm trying to do it is to set up a variable for the getascii function and limit that variable to a number between 0 and 255.
--------------------------------------------
onClipEvent (keyDown) {
set ("x", "y"
;
y>=0;
y<=255;
if (Key.getAscii() == "x"
{
gotoAndPlay (2);
}
}
--------------------------------------------
Any suggestions?
Thanks in advance!
-Cardy
--------------------------------------------
onClipEvent (keyDown) {
set ("x", "y"
y>=0;
y<=255;
if (Key.getAscii() == "x"
gotoAndPlay (2);
}
}
--------------------------------------------
Any suggestions?
Thanks in advance!
-Cardy