Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/07/2004, 20:21
Avatar de pereztroff
pereztroff
 
Fecha de Ingreso: junio-2002
Ubicación: En la Internet.
Mensajes: 4.068
Antigüedad: 21 años, 10 meses
Puntos: 5
action script

¿alguien puede explicarme en que consiste estas lineas?
me pasaron un trabajo en flah y no entiendo de momento


onClipEvent (enterFrame)
{
_root.posx = _root.cuadro._x;
_root.posy = _root.cuadro._y;
if (_root.iniciar == 1)
{
if (_root.a < 1.500000)
{
_root.cuadro._x = 750 - 438 * Math.sin(_root.a);
_root.a = _root.a + 0.500000;
}
else if (_root.a < 13.500000)
{
_root.cuadro._x = 312 - _root.des * Math.sin(_root.a);
_root.a = _root.a + 0.500000;
_root.des = _root.des - 0.850000;
} // end if
} // end if
if (_root.iniciar == 0)
{
_root.cuadro._x = 740;
_root.a = 0;
_root.des = 20;
_root.iniciar = 2;
} // end if
}

onClipEvent (load)
{
_root.a = 0;
_root.des = 20;
}

// [onClipEvent of sprite 4 in frame 1]
onClipEvent (enterFrame)
{
if (_root._xmouse < 100 && _root._xmouse < 530 && _root._ymouse < 140 && _root._ymouse < 180)
{
_root.iniciar = 1;
}
else
{
_root.iniciar = 0;
} // end if
}