Dynamically Pulling up MovieClip Location

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:

_root.opening.menu.buttonClip1.myButton

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

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

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

Thanks,
William

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:

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

Great, thank you…