home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Esportes
/
Tiro_al_Arco.swf
/
scripts
/
DefineSprite_169
/
frame_10
/
DoAction.as
Wrap
Text File
|
2007-06-07
|
747b
|
14 lines
_parent.CreateFlechas.Counter = Number(_parent.CreateFlechas.Counter) + 1;
_parent.CreateFlechas.attachMovie("MoveFlechas","Flecha" add _parent.CreateFlechas.Counter,_parent.CreateFlechas.Counter);
NuevaFlecha = eval("_parent.CreateFlechas.Flecha" add _parent.CreateFlechas.Counter);
point = new object();
Point.x = Punto._x;
Point.y = Punto._y;
this.localToGlobal(point);
NuevaFlecha._x = Point.x / (_parent._xscale / 100);
NuevaFlecha._y = Point.y / (_parent._yscale / 100);
NuevaFlecha.VelocidadY = Math.sin(_rotation / 180 * 3.14) * _root.varFuerzaTiro / 4;
NuevaFlecha.VelocidadX = Math.cos(_rotation / 180 * 3.14) * _root.varFuerzaTiro / 4;
NuevaFlecha.numero = _parent.CreateFlechas.Counter;
NuevaFlecha._rotation = _rotation;