I have a strange problem. I have a two sprites that are added to other Sprite and I, with localToGlobal(), get their global x,y coordinates, but when I add another movieclip and try to move them to "global" coordinates on ENTER_FRAME event, they are locked on 0,0 of the stage??
I have traced coords and they are correct but no positioning... Why?
var point:Point = new Point();
addChild(pl_name);
pl_name.addEventListener(Event.ENTER_FRAME, mov);
function mov(e:Event):void
{
for (var i in players)
{
var gglobal:Point = players[i].localToGlobal(point);
pl_name.x = gglobal.x;
pl_name.y = gglobal.y;
trace ("nameX "+pl_name.x+" nameY "+pl_name.y);
}
}