quinta-feira, 21 de fevereiro de 2013

AS3- localToGlobal - globalToLocal position

var targ1:MovieClip = MovieClip(maquina_mc.bolinha_guia);
var targ2:MovieClip = MovieClip(Bolinha);
var point:Point = targ2.parent.globalToLocal(targ1.parent.localToGlobal(new Point(targ1.x,targ1.y)));
targ2.x = point.x;
targ2.y = point.y;


Via: actionscript.org (caffrey75)
http://www.actionscript.org/forums/showpost.php3?p=1079596&postcount=6


Nenhum comentário :

Postar um comentário

About Me

Popular Posts

Designed By Seo Blogger Templates