Its really simple. Just follow the steps
----Tutorial For Controlling a Movie Clip----
Create two layers one for the animation and other for the buttons
1. Create a movie of about 10-15 frames(First layer), i am making 10 frames
2. The first frame is gonna be the title page/frame.
3. On the first frame(second layer), create two button(I hope u know how to make buttons)
4. Test the movie
(Ctrl + enter) . What you see? the movie loads up and runs automatically.......so you need to stop it at the first frame.
5. Click on the first frame(first layer) in the timeline and right click-->click-->actions or press F9
6. In the AS panel, click on
Script Assist(button on top-right side of the panel)
7. Now type this
Stop();
8. Now test the movie(Ctrl + enter) and this time the movie won't run automatically.
9. On to the buttons, click on the first button and then goto its AS panel.
10. Enter this code
on(release){
Play();
}
11. Now test the movie, And now press the play button
and tada see the magic.. lol theres no magic...... the AS is doing its work
12. For the Second Button, enter this code
on(release){
Stop();
}
and press it while the movie is being played.
So these are the two codes that are needed to control a movie clip.
there is one more code
on(release){
gotoAndPlay(x);
}
gotoAndPlay(x); take you to the specifed no of frame, and continues the movie from there
Example:
on(release){
gotoAndPlay(5);
}
This code will take you to frame number 5 and continue from there
on(release){
gotoAndStop(x);
}
Takes you to the specified frame no, and stops the movie there
--------------------------------END------------------------------
Enjoy!
And yeah if you like it.......Rep it