Ver Mensaje Individual
  #6 (permalink)  
Antiguo 26/01/2010, 09:39
Avatar de Lynxcraft
Lynxcraft
 
Fecha de Ingreso: noviembre-2007
Ubicación: yecla murcia
Mensajes: 1.346
Antigüedad: 16 años, 5 meses
Puntos: 51
Respuesta: No lee bien los listeners

primero lo del void es para que el flash reconozca el tipo de función si es de retorno o no, obvio no esta mal ponerlo

segundo no entiendo muy bien lo que quieres hacer pero talves este ejemplo te sirva


Código PHP:
function tablear(e:MouseEvent):void {
    
this.play();
}
function 
regresar(e:MouseEvent):void {
    
this.prevFrame()    
}
function 
detectFrame(e:Event):void {
    if(
this.currentFrame==1){
        
tabla_btn.removeEventListener(MouseEvent.CLICKregresar);
        
tabla_btn.addEventListener(MouseEvent.CLICKtablear);
        
this.stop()
    }
    if(
this.currentFrame==this.totalFrames){
        
tabla_btn.removeEventListener(MouseEvent.CLICKtablear);
        
tabla_btn.addEventListener(MouseEvent.CLICKregresar);
        
this.stop()
    }
}
stop()
this.addEventListener(Event.ENTER_FRAMEdetectFrame); 
añade y quita eventos dependiendo de te haga falta

ejemplo


http://rapidshare.com/files/341412589/retunr.rar.html
__________________
Sobran las ideas cuando faltan ganas de trabajar en ellas
Lynxcraft