ForumsProgramming ForumBasic Timeline Control in AS2

3 6411
dank
offline
dank
993 posts
Shepherd

-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.

  • 3 Replies
nqkoi1
offline
nqkoi1
383 posts
Peasant

Nice one pretty basic, but gives information for the begginers.

dank
offline
dank
993 posts
Shepherd

Bah, my play code is stop(); not play();

ace_rns
offline
ace_rns
3 posts
Peasant

Lol, on the stop thing,
uh, a mod should pin the tutorials.

Showing 1-3 of 3