![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
03/01/2010, 18:23
|
![Avatar de Diegoazul](http://static.forosdelweb.com/customavatars/avatar184067_90.gif) | | | Fecha de Ingreso: mayo-2007 Ubicación: { Dash Berlin }
Mensajes: 1.879
Antigüedad: 17 años, 8 meses Puntos: 67 | |
Respuesta: Desplazar movieclip de corrido AS3 Elimina el ciclo así: Cita: boton.addEventListener (MouseEvent.MOUSE_DOWN,abajo);
boton.addEventListener (MouseEvent.MOUSE_UP,arriba);
function abajo (event:MouseEvent): void{
stage.addEventListener (Event.ENTER_FRAME,ciclo);
}
function arriba (event:MouseEvent): void{
stage.removeEventListener ("enterFrame" ,ciclo);
}
function ciclo(event:Event): void{
cuadrado.y+=10;
}
__________________ { Flash } |