Flash CS3 AS3 UILoader fade in question

Hey Guys,
I REALLY need some help. I’m quite new to AS3 and am trying to write a script that will change the alpha of my UILoader instance (instance name: newsBG_mc) from 0 to 1 (100) once it has loaded in fully. My code doesn’t work and I was wondering if anyone can take a look and give me some advice. Thanks for reading…


newsBG_mc.scaleContent = true;

newsBG_mc.addEventListener(Event.COMPLETE, completeHandler);

function completeHandler(event:Event):void {

newsBG_mc.alpha = newsBG_mc.alpha +0.05;

if (newsBG_mc.alpha >= 1) {
	newsBG_mc.alpha = 1;
	newsBG_mc.removeEventListener(Event.COMPLETE, completeHandler);
}

}