# Find my movieClips own target

**URL:** <https://forum.kirupa.com/t/find-my-movieclips-own-target/309967>\
**Category:** flash\
**Created:** [May 28, 2010, 5:09pm UTC](https://forum.kirupa.com/t/find-my-movieclips-own-target/309967 "2010-05-28T17:09:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tyg3r](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/tyg3r/32/1341_2.png) [@Tyg3r](https://forum.kirupa.com/u/Tyg3r)\
**Post date:** [May 28, 2010, 5:09pm UTC](https://forum.kirupa.com/t/find-my-movieclips-own-target/309967/1 "2010-05-28T17:09:13Z")

</div>

Hi there,

I’m not sure if this is the completely wrong question to ask, as I’m starting to think there could be a very simple solution. (The “return” command keeps coming to mind), However:

I have a movieClip, within a movieClip… within a movieClip.

For instance: myContainer.myMovieclip.myButton  
[SIZE=1](These are actually dynamically loaded many times using _for_ loops)[/SIZE]

On the root, I have a function similar to this:

```auto
function makeMeWider (newWidth:Number, theTarget:String):void {
    theTarget.width = newWidth;
}

```

And in the “myButton”, I’d like to have somthing like this:

```auto
MovieClip(this.root).makeMeWider (200, this.target); 

```

It’s kind of a reverse way of doing things, but nether-the-less it would be really handy if I could pull this off.

The problem really, is that I can’t tell the “makeMeWider” function, the path/directory of where “myButton” is.

Is the a simple command? Or am I just not thinking strait?

Cheers,

Mark Notton
