# Blur Tweening in as3

**URL:** <https://forum.kirupa.com/t/blur-tweening-in-as3/285075>\
**Category:** flash\
**Created:** [March 26, 2009, 7:21pm UTC](https://forum.kirupa.com/t/blur-tweening-in-as3/285075 "2009-03-26T19:21:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jackslash5](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@jackslash5](https://forum.kirupa.com/u/jackslash5)\
**Post date:** [March 26, 2009, 7:21pm UTC](https://forum.kirupa.com/t/blur-tweening-in-as3/285075/1 "2009-03-26T19:21:22Z")

</div>

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]

```auto

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.
