Skip to main content
Participant
May 26, 2006
Question

Q:1 if i wanted to make a certin scene hapeen when i hit a certin key on the keyboared to make so as if i clicked

  • May 26, 2006
  • 1 reply
  • 150 views
Q:1 if i wanted to make a certin scene hapeen when i hit a certin key on the keyboared to make so as if i clicked on a certin button how could i do that?


Q:2 im having trouble with something i put this as in
on(press){gotoAndPlay
("Scene", framenumber);
}
but when it goes to to the certin scene it just keeps going througn the rest of the scenes how do i make it stop at the end of the scene and go back to the first scene


your help is greatly appreciated
This topic has been closed for replies.

1 reply

Inspiring
May 27, 2006
Hi thats simple.

u have to use a listener to get your Event.

var myListener = new Object();
myListener.onKeyDown = function(){
if(Key.isDown(Key.SPACE)){
trace("You have pressed SpaceBar");
}
}
Key.addListener(myListener);