View Full Version : get position relative to stage?

10-27-2009, 08:31 AM
I have a movieclip thats inside another movieclip..lets call them mc1 and mc2..

the problem is that I want to get the position of mc2 relative to the stage...and not to mc1..is there any simple way to do this?

Thansk in advance!

10-27-2009, 08:37 AM
DisplayObject.localToGlobal( pnt:Point ):Point

DisplayObject.globalToLocal( pnt:Point ):Point

It transforms a Point object with respect to the DisplayObject to the stage (localToGlobal), or from the stage to locally (globalToLocal)


livedocs - http://help.adobe.com/en_US/AS3LCR/Flash_10.0/

save them (in Flash hitting I think F1 takes you to them or something, I don't know, I use Eclipse)