patronise
07-04-2007, 11:46 AM
Hi there,
Forgive me, but I'm very much a n00b when it comes to Action Script. I have been looking around at tutorials and searched this and other sites...but I haven't been able to solve the problem. I'm working with Flash MX 2004, which I think runs Action Script 2.0.
Here's what I want to do: to be able to press the "Up" key on my keyboard which will then take me to the start of the next scene.
So far, I've just been playing around with this bit of code, which is attached to a small red circle which I converted to a movie clip.
if (Key.isDown(Key.UP)){
gotoAndPlay("Anxious 2", 1);
}}
Note that Anxious 2 is the name of the next scene. I've been able to do other stuff with this code (such as stop the sounds playing), but not go to the next scene.
I hope that's enough detail.
Cheers and thanks!
Forgive me, but I'm very much a n00b when it comes to Action Script. I have been looking around at tutorials and searched this and other sites...but I haven't been able to solve the problem. I'm working with Flash MX 2004, which I think runs Action Script 2.0.
Here's what I want to do: to be able to press the "Up" key on my keyboard which will then take me to the start of the next scene.
So far, I've just been playing around with this bit of code, which is attached to a small red circle which I converted to a movie clip.
if (Key.isDown(Key.UP)){
gotoAndPlay("Anxious 2", 1);
}}
Note that Anxious 2 is the name of the next scene. I've been able to do other stuff with this code (such as stop the sounds playing), but not go to the next scene.
I hope that's enough detail.
Cheers and thanks!