PDA

View Full Version : More Flash Stuff


Markpyro
12-06-2004, 11:34 PM
I have a question about the Action Script in Flash. I was wondering how to make a "Pause" Button, if someone could just run me throught the steps quickly?

Black.Ice
12-07-2004, 4:59 PM
I've never donet his before, but making a movie clip, and using the stop(); function should work fine... Let me try it though (hang on)...

Ok, I got it working. Check out this link. (http://www.faisalm.com/remote_images/flash.swf) It took me a while to remember the proper action...

Anyways, it involves two movie clips.

The first one is simply one that says, "Play" and the second is the "Stop"

Simply put the following code in each movie clip, Play and Stop, respectively:


on(release)
{
_root.play();
}


on(release)
{
_root.stop();
}

The stop() and play() functions work, just like their names say. The _root is the thing that helps get out of the movieClip, and effect the main timeline of the movie.

Hope this helps!