# Trouble with Loader Component inside MovieClip

**URL:** <https://forum.kirupa.com/t/trouble-with-loader-component-inside-movieclip/216549>\
**Category:** Uncategorized\
**Created:** [February 17, 2007, 10:32pm UTC](https://forum.kirupa.com/t/trouble-with-loader-component-inside-movieclip/216549 "2007-02-17T22:32:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![WearDark](https://avatars.discourse-cdn.com/v4/letter/w/48db29/32.png) [@WearDark](https://forum.kirupa.com/u/WearDark)\
**Post date:** [February 17, 2007, 10:32pm UTC](https://forum.kirupa.com/t/trouble-with-loader-component-inside-movieclip/216549/1 "2007-02-17T22:32:16Z")

</div>

I have an instance of a Loader component called imageLoader inside of a movieClip…

I attach the MovieClip to the stage dynamically using the following:

```auto

for(var i:Number = 0; i < 15; i++){
        var depth:Number = this.getNextHighestDepth();
        tiles* = this.attachMovie("mc2", "mc2" + depth, depth);
        tiles*.imageLoader.contentPath = "1_01.jpg";
        tiles*.onRelease = function(){
            moveTile(this);
        };
}

```

The problem I’m having is that

```auto
tiles*.imageLoader.contentPath = "1_01.jpg";

```

doesn’t load the image into the loader but when I set the content path of the loader (using parameters in the property inspector) I get the result I’m after.

Why doesn’t the loader respond when I set it’s content path dynamically?

Cheers.
