# localToGlobal Point wrong

**URL:** <https://forum.kirupa.com/t/localtoglobal-point-wrong/242684>\
**Category:** flash\
**Created:** [October 29, 2007, 2:56pm UTC](https://forum.kirupa.com/t/localtoglobal-point-wrong/242684 "2007-10-29T14:56:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![schmichael](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@schmichael](https://forum.kirupa.com/u/schmichael)\
**Post date:** [October 29, 2007, 2:56pm UTC](https://forum.kirupa.com/t/localtoglobal-point-wrong/242684/1 "2007-10-29T14:56:58Z")

</div>

Hiya, I have a movie clip that is nested inside 2 other clips and want to get it’s coordinates on the stage. I am using the localToGlobal method but it is returning the wrong values. Here is my code:  
[AS]  
var myP:Point = new Point(this.skew\_mc.grid\_mc.dot\_mc.x, this.skew\_mc.grid\_mc.dot\_mc.y);  
var newP:Point = this.skew\_mc.grid\_mc.dot\_mc.localToGlobal(myP);  
trace(newP);[/AS]  
I’ve attached an fla with an example of this in. If anyone can point out where I’m going wrong it would be a great help !  
🙂  
Thanks, Schm

I’ve just realised I should have posted this in the AS3 forum, if anyone can move my post please go ahead 🙂 thanks.
