Return to Snippet

Revision: 29792
at August 4, 2010 22:29 by adrianparr


Initial Code
var targetMc:MovieClip;
targetMc = purple.yellow.blue.green.red;
var pt:Point = new Point(targetMc.x, targetMc.y);
pt = targetMc.parent.localToGlobal(pt);

trace("red global x: "+ pt.x);
trace("red global y: "+ pt.y);

Initial URL
http://www.orlandmedia.com/blog/actionscript-3/localtoglobal-in-as3-not-working/

Initial Description
This demonstrates how to use localToGlobal in AS3.

Initial Title
AS3 LocalToGlobal Example

Initial Tags

                                

Initial Language
ActionScript 3