Ver Mensaje Individual
  #2 (permalink)  
Antiguo 13/01/2009, 13:26
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: animacion en reversa

Código PHP:
boton.onRollOver = function() {
    
    
ReversePlay(mc,"ani",true);

};
boton.onRollOut = function() {
    
ReverseStop("ani");

};
function 
ReversePlay(_MovieClip:MovieClipMC_Enterfrane:String,Bucle:Boolean) {
    var 
bucle Bucle;
    var 
Fin false;
    var 
profundidad;
       
_MovieClip.stop()
    for (var 
i in this) {
        
profundidad = (this[i].getDepth());
    }
    var 
ControlAniEnterFrame:MovieClip _root.createEmptyMovieClip(MC_Enterfraneprofundidad+1);
    
ControlAniEnterFrame.onEnterFrame = function() {

        
_MovieClip.prevFrame();
        if (
Fin) {
            
Fin false;
            
_MovieClip.gotoAndStop(_MovieClip._totalframes);
        }
        if (
bucle) {
            if (
_MovieClip._currentframe == 1) {
                
Fin true;
            }
        }
    };
}
function 
ReverseStop(MC_Enterfrane) {
    
delete (this[MC_Enterfrane].onEnterFrame)
    

__________________
Sobran las ideas cuando faltan ganas de trabajar en ellas
Lynxcraft