Comunidad de diseño web y desarrollo en internet online

duda con clase tween-onMotionFinished

Citar            
MensajeEscrito el 13 Jun 2008 04:16 pm
hola maestros del flash, estoy haciendo una entrada de escena con mascaras y tween la cosa es q quiero q entre un elemento, despues otro elemento, etc.
lo hago de esta manera

Código :

mover=function(){ 
    var mt2:Tween= new Tween(this.mask_obras, "_xscale", mx.transitions.easing.Regular.easeOut, this.mask_obras._x, 5000,.7, true);
   } 
   mt2.onMotionFinished=function(){ 
    var mt3:Tween= new Tween(maskara1, "_xscale", mx.transitions.easing.Regular.easeOut,maskara1._x, 104,.7, true);
   } 

El problema q quiero agregar otro tween es decir mt3.onMotionFinished pero no me deja.Como puedo agregar mas Tweens y que no pierda el orden?
Gracias!

Por jpe

1 de clabLevel



 

firefox
Citar            
MensajeEscrito el 13 Jun 2008 04:18 pm
Lo estás creando dentro del scope del primer Tween, prueba algo así:

mt2.onMotionFinished = algunaFuncion

En algunaFuncion crea el otro Tween y así sucesivamente

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox
Citar            
MensajeEscrito el 09 Feb 2009 08:57 am
Hola Gente, tengo un problemilla y no sé si lo puedo resolver....


Tengo una pelicula con un onMotionfinished, el caso esq la cargo en otra pelicula y esta acción no funciona....

¿Funciona el onMotionfinished en una pelicula cargada dentro de otra? ¿puede ser problema de las rutas?


os dejo el código que tengo en la película que carga....



this.boton.onRelease = function() {

var uno = new mx.transitions.Tween(tinto, "_y", mx.transitions.easing.Regular.easeInOut, tinto._y, 595, 0.5, true);
new mx.transitions.Tween(textb, "_alpha", mx.transitions.easing.Regular.easeInOut, textb._alpha, 100, 4, true);
new mx.transitions.Tween(textt, "_alpha", mx.transitions.easing.Regular.easeInOut, textt._alpha, 0, 1, true);


uno.onMotionFinished = function() {

new mx.transitions.Tween(blanco, "_y", mx.transitions.easing.Regular.easeInOut, blanco._y, 210, 2, true);
};
};


muchas gracias de antemano.
Un saludo a todos

Por vegadesign

20 de clabLevel



 

firefox
Citar            
MensajeEscrito el 09 Feb 2009 09:10 am
duda solucionada!!!!

gracias!

Por vegadesign

20 de clabLevel



 

firefox

 

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