# \_root.myMC help!

**URL:** <https://forum.kirupa.com/t/-root-mymc-help/63611>\
**Category:** flash\
**Created:** [September 8, 2004, 12:45pm UTC](https://forum.kirupa.com/t/-root-mymc-help/63611 "2004-09-08T12:45:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zak](https://avatars.discourse-cdn.com/v4/letter/z/8e7dd6/32.png) [@Zak](https://forum.kirupa.com/u/Zak)\
**Post date:** [September 8, 2004, 12:45pm UTC](https://forum.kirupa.com/t/-root-mymc-help/63611/1 "2004-09-08T12:45:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 8, 2004, 2:19pm UTC](https://forum.kirupa.com/t/-root-mymc-help/63611/2 "2004-09-08T14:19:31Z")

</div>

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
