# Convert loader into MovieClip

**URL:** <https://forum.kirupa.com/t/convert-loader-into-movieclip/273879>\
**Category:** flash\
**Created:** [October 22, 2008, 2:50am UTC](https://forum.kirupa.com/t/convert-loader-into-movieclip/273879 "2008-10-22T02:50:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saxx](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@saxx](https://forum.kirupa.com/u/saxx)\
**Post date:** [October 22, 2008, 2:50am UTC](https://forum.kirupa.com/t/convert-loader-into-movieclip/273879/1 "2008-10-22T02:50:05Z")

</div>

It probably has a simple answer but i can’t figure it out, i’ve googled a ton.

> var imageLoader:Loader = new Loader();  
> var image:URLRequest = new URLRequest((location.text()[+t]));  
> imageLoader.load(image);  
> addChild (imageLoader);

When i trace it it says “object loader” and i can’t manage depth with a loader object (i don’t think)

or am i going to have to use another movieclip to contain it

Throws an implicity coersion error if i try to use this code

> setChildIndex(event.target,numChildren - 1);
