Hiya, I have a movie clip that is nested inside 2 other clips and want to get it’s coordinates on the stage. I am using the localToGlobal method but it is returning the wrong values. Here is my code:
[AS]
var myP:Point = new Point(this.skew_mc.grid_mc.dot_mc.x, this.skew_mc.grid_mc.dot_mc.y);
var newP:Point = this.skew_mc.grid_mc.dot_mc.localToGlobal(myP);
trace(newP);[/AS]
I’ve attached an fla with an example of this in. If anyone can point out where I’m going wrong it would be a great help !
Thanks, Schm
I’ve just realised I should have posted this in the AS3 forum, if anyone can move my post please go ahead thanks.