# Flash CS3 AS3 UILoader fade in question

**URL:** <https://forum.kirupa.com/t/flash-cs3-as3-uiloader-fade-in-question/300183>\
**Category:** flash\
**Created:** [November 17, 2009, 11:44am UTC](https://forum.kirupa.com/t/flash-cs3-as3-uiloader-fade-in-question/300183 "2009-11-17T11:44:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Varl](https://avatars.discourse-cdn.com/v4/letter/v/ce7236/32.png) [@Varl](https://forum.kirupa.com/u/Varl)\
**Post date:** [November 17, 2009, 11:44am UTC](https://forum.kirupa.com/t/flash-cs3-as3-uiloader-fade-in-question/300183/1 "2009-11-17T11:44:32Z")

</div>

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 &gt;= 1) {
	newsBG_mc.alpha = 1;
	newsBG_mc.removeEventListener(Event.COMPLETE, completeHandler);
}

```

}
