Ver Mensaje Individual
  #8 (permalink)  
Antiguo 07/02/2010, 16:35
Avatar de Diegoazul
Diegoazul
 
Fecha de Ingreso: mayo-2007
Ubicación: { Dash Berlin }
Mensajes: 1.879
Antigüedad: 17 años
Puntos: 67
Respuesta: Ejecutar acción al comprobar un valor if(text=="0")

En teoria tienes un boton y dentro de ese boton un texto según tu codigo, Así podria ser:
Cita:
bt1.addEventListener(MouseEvent.CLICK, animacion);
function animacion(event:MouseEvent):void {


if (event.target.valor.text == "0") {
event.target.circulo.gotoAndPlay(2);
event.target.valor.text = "1";
}
}
__________________
{ Flash }