Skip to main content
Participant
March 20, 2007
Answered

How to gotoAndPlay inside a MC

  • March 20, 2007
  • 1 reply
  • 311 views
Suppose I have a MC on the screen inside it frame 1 with stop on it now,when something hits the instance circle it goes the the 2 frame inside the MC


Thanks
This topic has been closed for replies.
Correct answer Charles Parcell
myMovieClip.gotoAndPlay(2);

Assuming that the MovieClip instance is called myMovieClip.

1 reply

Charles ParcellCorrect answer
Participating Frequently
March 20, 2007
myMovieClip.gotoAndPlay(2);

Assuming that the MovieClip instance is called myMovieClip.
Known Participant
March 21, 2007
Try this ( in this example your mc is named my_mc) :

my_mc.onRollOver = function () {
this.gotoAndStop(2);
}

OnRollOver being the part where the mouse hits the mc on the stage.