# Get global position of movieclip inside a movieclip

**URL:** <https://forum.kirupa.com/t/get-global-position-of-movieclip-inside-a-movieclip/304634>\
**Category:** flash\
**Created:** [February 11, 2010, 12:09am UTC](https://forum.kirupa.com/t/get-global-position-of-movieclip-inside-a-movieclip/304634 "2010-02-11T00:09:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![waverider303](https://avatars.discourse-cdn.com/v4/letter/w/ac91a4/32.png) [@waverider303](https://forum.kirupa.com/u/waverider303)\
**Post date:** [February 11, 2010, 12:09am UTC](https://forum.kirupa.com/t/get-global-position-of-movieclip-inside-a-movieclip/304634/1 "2010-02-11T00:09:51Z")

</div>

I have a movie clip called “myMC”. I set its x value as such:

[AS]  
var myMC:MovieClip = new MovieClip();  
addChild(myMC);  
myMC.x = 100;  
myMC.y = 243;  
[/AS]

I then Have another movie clip that is inside “myMC”:

[AS]  
var myShape:MovieClip = new MovieClip();  
myMC.addChild(myShape);  
myShape.x = 56;  
myShape.y = 53;  
[/AS]

I know I could proboly acheive this with a math equation but is there a function that can get the exact global position of “myShape”? So that I can position another movieclip or sprite around that movieclip?
