Quote:
Originally Posted by inhan
You can construct an array having your frame labels and write a function for the arrow keys to make it gotoAndPlay(labels[i]) on release.
|
I'm wondering if I could use this for what i'm having trouble with. I'm making a presentation in flash with the arrow keys as navigation. I have it set up by section in my .fla I have an intro in the main timeline. After that, it stops at the last frame of the intro. On that frame, I have action script to then play a movie clip of the first section when the arrow key is pressed. Here is the code I used:
this.onKeyDown = function() {
if (Key.getCode() == (Key.RIGHT)) {
gotoAndPlay("greenBox_mc");
Key.removeListener(this);
}
};
Key.addListener(this);
So each section of the presentation has it's own movie clip that is accessed with the same script. My problem now is that in one of the movie clips I want it to stop at a point and wait for the key to be pressed and then move on still within that movie clip. I tried putting the same script on the frame in the movie clip, but it didn't work.
OR... am I better off using the suggestion and creating frame labels? My boss wants to use this presentation in the future but with changing images. So I need it as simple as possible. Any help is GREATLY appreciated.