/ Published in: ActionScript 3
Expand |
Embed | Plain Text
import flash.geom.Point; var xGlob:Number = this.parent.localToGlobal(new Point(this.x, 0)).x; var yGlob:Number = this.parent.localToGlobal(new Point(0, this.y)).y; trace(yGlob); trace(xGlob);
Comments
Subscribe to comments
You need to login to post a comment.

There is an error in the above code, should be:
var yGlob = this.parent.localToGlobal(new Point(0, this.y)).y;Thanx! I'll fix
Thanks, this worked perfectly!