Comunidad de diseño web y desarrollo en internet online

Ayuda para intrerpretar codigo

Citar            
MensajeEscrito el 30 Jul 2008 01:50 pm
Hola!! alguien me podria traducir logicamente que quiere decir este parte de codigo?

Código :

startx = getProperty(eval("/:vozi"), _x);
starty = getProperty(eval("/:vozi"), _y);
horizontalno = eval("/:targetx") - startx;
vertikalno = eval("/:targety") - starty;
setProperty(eval("/:vozi"), _x, startx + horizontalno / 2);
setProperty(eval("/:vozi"), _y, starty + vertikalno / 2);


Es algo sobre como se deberia mover el target vozi??
Gracias!!

Por luciana24

17 de clabLevel



 

firefox
Citar            
MensajeEscrito el 30 Jul 2008 02:30 pm
Es una sintaxis de Flash 4, traducido sería

Código :

startx = vozi._x;
starty = vozi._y;
horizontalno = targetx - startx;
vertikalno = targety - starty;
vozi._x = startx + (horizontalno / 2);
vozi._y = starty + (vertikalno / 2);


Básicamente saca algunas cuentas y modifica la posición del MC con nombre de instancia vozi

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.