PDA

View Full Version : doucle clicking ......Help???


NewChica
07-30-2001, 03:40 PM
Hello everyone I am just starting out in the big flash programming and I have a problem I'm trying to create a sort of pausing button in two different movies

In the first movie I have one button and 1 movie clip
I want my button to stop the animation the 1st time I click on it and then restart the second time I click on it(the same button) I'm not understanding how to make the same button do that?? I got an awnser from someone telling me to put the button onto a movie clic and use the_root. command but it gives me an error.....

Then in my second movie I have 5 movie clips all moving one behind another... I have a button and "on rollover" it starts the animation and "on rollout" it should stop all of them and then when you go back "on rollover" it starts back where it was and so on...But I don't know how ??

Any help is greatly appreciated :)

Jesse
07-31-2001, 03:48 AM
You could put 2 different buttons with different code into a 2 frame MC but that seems innefficient to me. I would be more inclined to do this:
Frame 1:
_root.go = true;
on the button:
if (_root.go) {
_root.mcname.play();
_root.go = false;
} else {
_root.mcname.stop();
_root.go = true;
}
be sure to read the first 4 beginner level tutorials if you haven't already.