Targeting a sub-timeline

Hi,
Stupid question. Let say I have a button on the main timeline. On press I want to gotoAndPlay say frame 15 of a movie clip called sub. Basically how do I target timelines that are not in the main timeline?
Thanks a lot

Tim

if the button is in the _root timeline and the ‘sub’ mc is in the _root timeline, put these actions on the button:
on(release){
_root.sub.gotoAndPlay(15);
}
:slight_smile:
jeremy

Jeremy,

Right you are. You’ve helped me out a few times. Thanks alot. It’s much appreciated.

Take care,
Tim

Here’s one for you before you ask the question. :wink:

technicaly in that last example, the button would only need this.

on(release){
sub.gotoAndPlay(17);
}

the reason is, the button is on the main timeline along with the movie clip.

Now, if you were to have that same button, inside a movie clip, and you wanted it to talk to another movie clip… and both of those movie clips were on the main timeline you would have to use this

on(release){
_root.sub.gotoAndPlay(17);
}

or this…

on(release){
_parent.sub.gotoAndPlay(17);
}

the “_root” tell the player to look at the main timline first, and then up the string of names until it gets to the one you want to control. The “_parent” tells the player to look at the timeline that contains the timeline that this button is in, and then up the string of names until it gets to the one you want to control.