hi everyone,
i am trying to make a presenation on flash, now i want the presenation to be controlled by keyboard, like for example in order to move slide by slide i want to make use of key board, just like we do in power point,
now i have placed a command of stop on every frame but i need now, is that when i press the space key ,it should recognize that key stroke and move one frame forward.
i don't want to use buttons,
now i found out one command , the key command, i wrote the following code( on the frame)
stop ();
if (Key.isDown(Key.BACKSPACE)) {
nextFrame ();
}
it did not work so i modified it and wrote
stop ();
if (Key.isDown(Key.SPACE)) {
x = "1";
}
if (x==1) {
gotoAndPlay (2);
}
have i understood the meaning of key command wrong , and how can i achieve my purpose.
thanx
i am trying to make a presenation on flash, now i want the presenation to be controlled by keyboard, like for example in order to move slide by slide i want to make use of key board, just like we do in power point,
now i have placed a command of stop on every frame but i need now, is that when i press the space key ,it should recognize that key stroke and move one frame forward.
i don't want to use buttons,
now i found out one command , the key command, i wrote the following code( on the frame)
stop ();
if (Key.isDown(Key.BACKSPACE)) {
nextFrame ();
}
it did not work so i modified it and wrote
stop ();
if (Key.isDown(Key.SPACE)) {
x = "1";
}
if (x==1) {
gotoAndPlay (2);
}
have i understood the meaning of key command wrong , and how can i achieve my purpose.
thanx