# "localToGlobal" and non-stage items

**URL:** <https://forum.kirupa.com/t/localtoglobal-and-non-stage-items/314026>\
**Category:** flash\
**Created:** [September 16, 2010, 11:57am UTC](https://forum.kirupa.com/t/localtoglobal-and-non-stage-items/314026 "2010-09-16T11:57:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IQAndreas](https://avatars.discourse-cdn.com/v4/letter/i/f08c70/32.png) [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Post date:** [September 16, 2010, 11:57am UTC](https://forum.kirupa.com/t/localtoglobal-and-non-stage-items/314026/1 "2010-09-16T11:57:17Z")

</div>

I’m not sure why I haven’t run into this before, but I was working a bit with “[localToGlobal](http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/display/DisplayObject.html#localToGlobal%28%29)” and realized that it even works for items that are not on the stage:

```auto
import flash.display.Sprite;
import flash.geom.Point;

var sp:Sprite = new Sprite();
sp.x = 54;
sp.y = 20;

//Outputs 108, 40
trace(sp.localToGlobal(new Point(sp.x, sp.y)));

```

Has anyone experimented with this further and found a pattern (or preferably a reason) behind what it does?

I would test myself, but I have learned that 99% of the time, someone has already tried this before me. 😉
