# Variable of nested MovieClips global coordinates

**URL:** <https://forum.kirupa.com/t/variable-of-nested-movieclips-global-coordinates/287043>\
**Category:** Uncategorized\
**Created:** [April 24, 2009, 11:01pm UTC](https://forum.kirupa.com/t/variable-of-nested-movieclips-global-coordinates/287043 "2009-04-24T23:01:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobcahill](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@bobcahill](https://forum.kirupa.com/u/bobcahill)\
**Post date:** [April 24, 2009, 11:01pm UTC](https://forum.kirupa.com/t/variable-of-nested-movieclips-global-coordinates/287043/1 "2009-04-24T23:01:05Z")

</div>

I have a MovieClip (“mc3” that moves dynamically) inside of a MovieClip (“mc2” that moves dynamically) that is on the stage (“stage” that is static). I need to find the value of mc3’s x in relation to the stage? I need to make it into a variable. I am trying to do the math, can’t figure it out. Also tried localToGlobal and failed. Any ideas?

Bob
