Skip to main content
Participant
July 17, 2006
Question

stop(); not working?

  • July 17, 2006
  • 2 replies
  • 252 views
Hi,
I am creating an animation that on the root timeline, it's an image, with a movieclip that is a button ont he stage. I put a layer in my timeline just for actions, and on the first frame I put the stop(); command. THe movie still plays right through, and the movieclip that i have set up as a button with the following code on it:

on (rollOver) {play();
}

it plays immediately before you can even rollover it to go to the next part of animation. Anyone have the solution? I believe it's an easy fix, but I don't have much actionscript knowledge.
This topic has been closed for replies.

2 replies

riddy65Author
Participant
July 17, 2006
Thanks for the help, that did the trick.
Inspiring
July 17, 2006
You're welcome.
Inspiring
July 17, 2006
Try putting a stop(); in the first frame of the button MC and then put the code for the rollover on the first frame of the main timeline as well:

myButton.onRollOver = function () {
gotoAndPlay (2);
};