_root.myMC help!

Ok so I have done this before, but I cant get it working again. I have a button inside a movie clip. Now I want to make it so when you click the button it plays another movie clip on a certian frame (movie clip name is maintxt). So this is my thinking _root.maintxt.gotoAndPlay(25);

But this doesnt work, I dont know why, ahmed suggested either that or _parent._parent.maintxt.gotoAndPlay(25);

Anyone else have any ideas at all throw them up!

  • Zak

In the actionscript panel, there is a thing that looks like a target, click it and it will help you get paths to objects

There are two types, relative/absolute
Absolute starts from _root and works its way to the clip needed
Relative works from where your code is located, so _parent is used to jump back a step

You may need to give the movieclip an instance name to loacte it easier, but from the button you would do
_parent.maintxt.gotoAndPlay(25);
^
jumps out of first movieclip, and goes to maintxt

If this still doesnt work please post your fla so that I can see the mc’s