Código :
...listener.onLoadInit = function(target_mc:MovieClip){
holder._visible=false;
holder._x-=(holder._width/2);
holder._y-=(holder._height/2);
import mx.transitions.Tween;
import mx.transitions.easing.*;
var tweenWidth:Tween = new Tween (clip, "_width", Strong.easeOut, clip._width, holder._width+(marge*2), 1.5, true);
var tweenHeight:Tween = new Tween (clip, "_height", Strong.easeIn, clip._height, holder._height+(marge*2), 1.5, true);
tweenWidth.onMotionFinished = function() {
holder._visible=true;
var tweenAlpha:Tween = new Tween (holder, "_alpha", Strong.easeInOut, 0, 100, 1, true);
}
}
carregador.addListener(listener);
btn_1.onRelease = function(){
tweenWidth.yoyo();
tweenHeight.yoyo();
carregador.loadClip("imgs/gravats.jpg",holder);
}
btn_2.onRelease = function(){
tweenWidth.yoyo();
tweenHeight.yoyo();
carregador.loadClip("imgs/gravats2.jpg",holder);
}
btn_3.onRelease = function(){
tweenWidth.yoyo();
tweenHeight.yoyo();
carregador.loadClip("imgs/gravats3.jpg",holder);
}http://www.miquelangelpara.org/proves/curriculum/prova.html
Mi objetivo es crear una clase (la primera que haré) para insertar este efecto en el proyecto que estoy haciendo, facilmente.
