# Remove all instances of a Loader

**URL:** https://forum.kirupa.com/t/remove-all-instances-of-a-loader/272761
**Category:** flash
**Created:** [October 8, 2008, 9:36am UTC](https://forum.kirupa.com/t/remove-all-instances-of-a-loader/272761 "2008-10-08T09:36:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Rundevo](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@Rundevo](https://forum.kirupa.com/u/Rundevo)
#### Post date: [October 8, 2008, 9:36am UTC](https://forum.kirupa.com/t/remove-all-instances-of-a-loader/272761/1 "2008-10-08T09:36:14Z")

</div>

Hi guys!

Trying to remove all instances of the thumbLoader, but since I can´t use getChildByName, I don´t know how to do it!

Any ideas?

```auto
for (var n:int = 0; n < images.length(); n++)
		{
			if (images[n].attribute("source") == event.target.name)
			{
				var thumbList = images.@source[n].parent().parent().image;
				for (var o:int = 0; o < thumbList.@thumb.length(); o++)
				{
					thumbLoader = new Loader();
					thumbLoader.load(new URLRequest(thumbList.@thumb[o]));
					thumbLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbHandler);
					thumbLoader.x = o * 175 + 140;
					thumbLoader.y = 590;
					addChild(thumbLoader);

					thumbLoader.name = thumbList.@source[o];
				}
			}
		}
		function thumbHandler(event:Event):void
			{
				fadeTween=new Tween(event.target.content,"alpha",None.easeNone,0,1,1,true);
			}

```

It would be even better if I could use the Tweenclass to fade them out before removing them, but that´s overkill for now, but yes, would be nice 🙂

Thanks in advance

/rundevo
