# Loader Component & attachMovie

**URL:** <https://forum.kirupa.com/t/loader-component-attachmovie/230250>\
**Category:** flash\
**Created:** [June 24, 2007, 4:26pm UTC](https://forum.kirupa.com/t/loader-component-attachmovie/230250 "2007-06-24T16:26:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nucleo](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@Nucleo](https://forum.kirupa.com/u/Nucleo)\
**Post date:** [June 24, 2007, 4:26pm UTC](https://forum.kirupa.com/t/loader-component-attachmovie/230250/1 "2007-06-24T16:26:31Z")

</div>

Hi all

I have an app which takes data from php - MYSQL, loads into flash and now im just displaying it using attachMovie to use an MC from the library…

In this data there is a imageurl string. I want to use the imageurl string as the loader components content path. I have done some tests offline and using something like

```auto
_root.image.contentPath = "images/2.jpg";

```

Works fine.

Now, getting more complicated and setting the contentPath for multiple dynamicly placed MC’s is a little more difficult. I have the loop & displaying all the text nailed. Its just getting the Loader component to play ball.

```auto

_root.itemcontainer["item"+$counter].imageurl.contentPath = this["image"+$counter];

```

This contains “images/1.jpg”

```auto
this["image"+$counter]

```

but it just doesn’t work. All the Loader components on stage are empty.

Any idea?

Thanks
