Forums

ForumsProgramming Forum

Basic Timeline Control in AS2

Thread Locked

Posted Feb 5, '08 at 7:42pm

dank

dank

1,043 posts

Knight

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

 

Posted Feb 6, '08 at 4:00am

nqkoi1

nqkoi1

427 posts

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

 

Posted Feb 6, '08 at 10:08am

dank

dank

1,043 posts

Knight

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

 

Posted Feb 6, '08 at 3:20pm

ace_rns

ace_rns

3 posts

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