I have a preloader I really like that I use on my website thats written in AS3, and while all of my site is in AS3, my homepage which includes a flip book is in AS2, and I want to change this preloader code into AS2 so I can use it on my site homepage I'm pretty new to flash and actionscript so any help would be appreciated
p.s. I';ve tried to change my flip book to AS3 with no luck, my website is here if that helps: www.michaelfishel.com

MovieClip(parent).stop();

import flash.filters.BlurFilter;


var i:int = 0;
var timer:Timer = new Timer(10,50);
timer.addEventListener(TimerEvent.TIMER, timerHandler);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, completeHandler);


rainbow_mc.mask = mask_mc;


rainbow_mc.cacheAsBitmap = true;
mask_mc.cacheAsBitmap = true;


this.loaderInfo.addEventListener(ProgressEvent.PRO GRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);

function onProgress(e:ProgressEvent):void
{

var pct:Number = e.target.bytesLoaded/e.target.bytesTotal;

pct_txt.text = Math.round(pct*100).toString();

mask_mc.rotation = pct*180;
}


function onComplete(e:Event):void
{
timer.start();
}


function timerHandler(event:TimerEvent):void
{
i++;
rainbow_mc.filters = [new BlurFilter(i,i,3)];
rainbow_mc.alpha = rainbow_mc.alpha - .02;
pct_txt.alpha = pct_txt.alpha - .02;
}


function completeHandler(event:TimerEvent):void
{
timer.removeEventListener(TimerEvent.TIMER, timerHandler);
timer.removeEventListener(TimerEvent.TIMER_COMPLET E, completeHandler);
MovieClip(parent).gotoAndPlay(2);
}