Forums → Programming Forum → Basic Timeline Control in AS2
3 | 7937 |
3 | 7937 |
-What We Will Cover-
1A : How to stop movie
2A : How to play movie
3A : How to go to a frame and stop
4A : How to go to a frame
5A : How to go to the next frame and stop
6A : How to go to the previous frame and stop
-1A : How To Stop The Movie-
Select the frame you wish to stop the movie on. Then, typing/pasting the code shown below.
stop();
-1A : How To Play The Movie-
Select the frame you wish to play the movie on. Then, typing/pasting the code shown below.
This isn't needed to start the movie because flash sets it to play at default.
stop();
-3A : How to go to a frame and stop-
Just place this in a frame you want it to jump from.
gotoAndStop(frame);
The "frame" must be replaced by the frame you wish it to go to.
-4A : How to go to a frame-
Just place this in a frame you want it to jump from.
gotoAndPlay(frame);
The "frame" must be replaced by the frame you wish it to go to.
-5A : How to go to the next frame and stop-
Just place this in the frame before you the frame you want to go to
nextFrame();
There is not much uses for this in a frame. But when you use buttons or other things, this will be useful.
- 6A : How to go to the previous frame and stop-
Just place this in the frame before you the frame you want to go to
prevFrame();
There is not much uses for this in a frame. But when you use buttons or other things, this will be useful.
Thread is locked!