# Dynamically Pulling up MovieClip Location

**URL:** <https://forum.kirupa.com/t/dynamically-pulling-up-movieclip-location/42133>\
**Category:** flash\
**Created:** [February 5, 2004, 3:29pm UTC](https://forum.kirupa.com/t/dynamically-pulling-up-movieclip-location/42133 "2004-02-05T15:29:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mannequin](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@Mannequin](https://forum.kirupa.com/u/Mannequin)\
**Post date:** [February 5, 2004, 3:29pm UTC](https://forum.kirupa.com/t/dynamically-pulling-up-movieclip-location/42133/1 "2004-02-05T15:29:31Z")

</div>

Hey there,

I’ve got a question for you guys. Is there a way to dynamically pinpoint a movieclip location? For example, if I had a button tucked away in:

```auto
_root.opening.menu.buttonClip1.myButton

```

… is there a way to pull up this location using an ‘on(release)’ ? Demonstration:

```auto
onRelease() {
 _root.myVar = this._currentLocation;
}

// where 'this._currentLocation' = _root.opening.menu.buttonClip1.myButton

```

Thanks,  
William

---

<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:** [February 5, 2004, 3:37pm UTC](https://forum.kirupa.com/t/dynamically-pulling-up-movieclip-location/42133/2 "2004-02-05T15:37:49Z")

</div>

Well, if you set a variable to point to [color=blue]this[/color] within the button/movieclip, the value of the variable would be its location. so for example:

```auto
// within some movieclip...
onClipEvent (load) {
_root.mc1 = this;
}
// anywhere ...
trace(_root.mc1); // would output the location of that movieclip

```

---

<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:** [February 5, 2004, 4:20pm UTC](https://forum.kirupa.com/t/dynamically-pulling-up-movieclip-location/42133/3 "2004-02-05T16:20:44Z")

</div>

Great, thank you…
