Ver Mensaje Individual
  #5 (permalink)  
Antiguo 13/11/2006, 22:22
Avatar de seyacat
seyacat
 
Fecha de Ingreso: agosto-2006
Mensajes: 382
Antigüedad: 17 años, 8 meses
Puntos: 0
Esta ultra beta y no hace ni de cerca lo que quieres hacer, pero mas o menos por ahi va,

Requiere:
este script en el primer frame y un MC llamado cubo en cualquier lado

Código PHP:
function cubofire(cubo:Object,X:Number,Y:Number,vel1:Number,vel2:Number){
    
    for(
i=0;i<10;i++){
        
//trace(cubo._y+30*i)
        
duplicateMovieClip(cubo,"cubo"+i,100+i);
        
this["cubo"+i]._x X
        this
["cubo"+i]._y Y+10*i
        this
["cubo"+i].segini int(getTimer())
        
this["cubo"+i].aparece i*100;
        
this["cubo"+i].hold i*100;
        
this["cubo"+i]._alpha 0;
        
this["cubo"+i]._vel1 vel1
        this
["cubo"+i]._vel2 vel2
        this
["cubo"+i].onEnterFrame = function(){
            if(
this.segundo != int(getTimer())){
                
this.segundo int(getTimer())
                }
            
this.paso this.segundo-this.segini
            
if(this.aparece <= this.paso and this.aparece != -1){
                
this.aparece = -1;
                
this._alpha 100;
                
this._y += vel1;
                }
            else if(
this.hold <= this.paso){
                
this._y += vel2;
                if(
this._alpha 0){
                    
this._alpha -= 10;
                    }    
                if(
this._alpha 0){
                    
this.removeMovieClip();
                    }    
                }
            else{
this._y += vel2;}
            }
        }
    }
cubofire(cubo,250,200,10,-10