Loader Component & attachMovie

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

_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.


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

This contains “images/1.jpg”

this["image"+$counter]

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

Any idea?

Thanks