Someone can help me to transform this AS2 code in AS3. This code is about a speed effect (see fla attachement). I need to put it in a AS3 Fla but I’m not good in programation.

Thanks in advance.

import flash.filters.BlurFilter;

import mx.transitions.Tween;

import mx.transitions.easing.*;
var duration:Number = 15;
var t1:Object = new Tween(mcToTween1, “_x”, Elastic.easeIn, 133, 367, duration, 0);
var t2:Object = new Tween(mcToTween1, “blur”, Elastic.easeIn, 0, 0, 1, true);
t1.onMotionChanged = function() {
oldx = x;
oldy = y;
x = mcToTween1._x;
y = mcToTween1._y;
///////
vitessex = Math.round(Math.abs((x-oldx)));
vitessey = Math.round(Math.abs((y-oldy)));
///////
mcToTween1.filters = [new BlurFilter(vitessex*2, vitessey*2, 1)];

trace(vitessex);

};

t1.onMotionFinished = function() {

t1.yoyo();

};