# localToGlobal not working

**URL:** <https://forum.kirupa.com/t/localtoglobal-not-working/327442>\
**Category:** flash\
**Created:** [March 1, 2012, 5:49am UTC](https://forum.kirupa.com/t/localtoglobal-not-working/327442 "2012-03-01T05:49:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GeekTweak\_0](https://avatars.discourse-cdn.com/v4/letter/g/b5ac83/32.png) [@GeekTweak\_0](https://forum.kirupa.com/u/GeekTweak_0)\
**Post date:** [March 1, 2012, 5:49am UTC](https://forum.kirupa.com/t/localtoglobal-not-working/327442/1 "2012-03-01T05:49:55Z")

</div>

Here’s what i have:

```auto

for(var i=x; i<y; i++)
{
var tempPos:Point = new Point();
            tempPos.x = circle*.x;
            tempPos.y = circle*.y;
            tempPos = circle*.parent.localToGlobal(tempPos);
            tempPos = parent.globalToLocal(tempPos);
            trace(circle*.x+"," +circle*.y);
}

```

but the trace just returns 0,0 over and over again.  
why would it not be getting the accurate position for each sprite?
