Hi everybody,
I am trying to make a animation of a mc that comes on the stage with a descreasing blurX property. I’ve created a class of this mc in the library called [COLOR=blue][COLOR=red]txt_1[/COLOR][/COLOR][COLOR=black]. Here is the code:[/COLOR]
import fl.transitions.*;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
import flash.filters.BlurFilter;
var mc:MovieClip;
var myTimer:Timer = new Timer(1000,1);
myTimer.addEventListener(TimerEvent.TIMER, doStuff);
function doStuff(event:TimerEvent):void {
mc = new txt_1;
mc.x=600;
mc.y=200;
var blur:BlurFilter = new BlurFilter(50, 0, 2);
new Tween(mc,"x",Strong.easeOut,mc.x,mc.x-300,2,true);
mc.filters=[blur];
new Tween(blur,"blurX",Strong.easeOut,blur.blurX,blur.blurX-50,2,false);
addChild(mc);
mc.play();
}
myTimer.start();
I do want make a Timer with “newTween();” method and I also know that i need to aply the “MOTION_CHANGE” to the blur array. I don’t like those ready to use Tweeners, so that is not a option for me.I like to learn how things realy work. If anyone could help I’d be very thankfull.
Thanks in advance.