# Access dynamically created loaders

**URL:** https://forum.kirupa.com/t/access-dynamically-created-loaders/235577
**Category:** Uncategorized
**Created:** [August 13, 2007, 4:01am UTC](https://forum.kirupa.com/t/access-dynamically-created-loaders/235577 "2007-08-13T04:01:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mfey](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mfey/32/3661_2.png) [@mfey](https://forum.kirupa.com/u/mfey)
#### Post date: [August 13, 2007, 4:01am UTC](https://forum.kirupa.com/t/access-dynamically-created-loaders/235577/1 "2007-08-13T04:01:28Z")

</div>

I have the following code, which puts a thumbnail pic inside a movieclip. If I want each thumbnail pic to fade in as it completes loading, how would I go about doing that? Any reference to “this” inside the “thumbLoaded” function references the actual content loader info, not the loader itself it seems. Any reference to tLoadArray[z] just fades in the last pic in the array.

```php
var thumbLoader:Loader = new Loader;
var thumbPic:URLRequest = new URLRequest(myXML.image[z].@thumb);
thumbLoader.load(thumbPic);
thumbs.addChild(thumbLoader);
thumbLoader.name = "tLoad" + z;
tLoadArray[z] = thumbs.getChildByName("tLoad" + z);
tLoadArray[z].x = -33.63;
tLoadArray[z].y = -44.6;
tLoadArray[z].alpha = 0;
thumbLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbLoaded);

function thumbLoaded(myEvent:Event):void {
         //FADE IN LOADER HERE
        };

```

Thanks in advance
