Make a move clip with two frames, on the first one put a play symbol and on the second one a stop symbol. On both of the frames place the code.
Then go back to the main time line and give your movie clip an instance name in the properties box at the bottom. For example you could call it StopNGo_mc. After you have done this, then add the following code to your main timeline.
- _root.StopNGo_mc.onRelease = function() {
-
if (_root.StopNGo._currentFrame == 1) {
-
_root.StopNGo.gotoAndStop(2);
-
_root.Movie_mc.stop();
-
} else {
-
_root.StopNGo.gotoAndStop(1);
-
_root.Movie_mc.play();
-
}
-
};
In the code above, Movie_mc is the instance name of the movieclip you want to control. If you have any questions, just ask.