Comunidad de diseño web y desarrollo en internet online

Problema con Easing... alguna opcion?

Citar            
MensajeEscrito el 07 Feb 2006 07:14 pm
Problemas con Easing

Tengo dos movieClips en el escenario, mc y mc2.... tienen aplicados 2 efectos de easing de Robert Penner...
Como puedo hacer una funcion para que comience uno despues del otro o sea superponiéndose los movimientos?
O sea, comienza mc pasa un cierto tiempo y comienza mc2...

Código :


import mx.effects.*;
import com.robertpenner.easing.*;

mc2._alpha=0;

comienzo();

function primero(){
   mc.onTweenUpdate = function(value) {
      this._xscale = value[0];
      this._yscale = value[1];
      
      
   }
   mc.onTweenEnd = function(value) {
      this._xscale = value[0];
      this._yscale = value[1];
      
      
   }
   var tw = new Tween(mc, [0,  0], [ 200, 200], 8000);
   tw.easingEquation = Bounce.easeIn;
}



function segundo(){
   mc2.onTweenUpdate = function(value) {
      this._xscale = value[0];
      this._yscale = value[1];
      this._alpha = value[2];
      
   };
   mc2.onTweenEnd = function(value) {
      this._xscale = value[0];
      this._yscale = value[1];
      this._alpha = value[2];
      
   };
   var tw2 = new Tween(mc2, [200, 200, 0], [100, 100, 100], 7000);
   tw2.easingEquation = Elastic.easeOut;
}

Por 5150

7 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 07 Feb 2006 09:31 pm
antes de llamar al segundo create algo de este tipo:

Código :

var a:Number = new Number(1);
this.onEnterFrame = function(){
        if (a>30){
                 segundo();
                 delete this.onEnterFrame;
        }
        else{
             a++;
        }
}

Por gparis

112 de clabLevel



 

Uruguay

opera

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.