Creat Dynamic Images

Hello,

Im having troubles and hope to test your skills!

Currently I have a movie that creates instances of a movieClip from text in an array. I need to be able to attach images to these instances but do not know the correct syntax.

so…
on the first frame is the following code:
[color=Blue]
[color=Gray] //---------------------------------------------------------------
// create dynamic clip in middle of stage
//---------------------------------------------------------------[/color]
this.createEmptyMovieClip(“world”, 1);
world._x = 300;
world._y = 300;

[color=Gray] //---------------------------------------------------------------
// create array of words
//---------------------------------------------------------------[/color]
this.somewords = “Adam Han Solo Chewy Darth Vader R2D2 C3PO”;
this.wordList = new Array();
this.wordList = this.somewords.split(" ");

[color=Gray] //---------------------------------------------------------------
// Acreate new instances of mc_Word clip for words
//---------------------------------------------------------------[/color]
for (n=0; n<this.wordList.length; n++) {
var newWord = wordList[n];
trace(newWord);
instanceName = “word”+String(depth++);
initobject = {txtword:newWord};
world.attachMovie(“mc_word”, instanceName, depth, initobject);
}[/color]

Then in the libary is a movieclip names “mc_Word” with a linkage of “mc_word” (lowercase). This movie clip has a dynamic text field with the varible “txtword”.

On the first frame of this clip is the following code:

[color=Blue][color=Gray]//---------------------------------------------------------------
// Initiat movie clip for new instances of mc_word - linked
//---------------------------------------------------------------[/color]
#initclip
mc_Create.prototype = new MovieClip();

[color=Gray] //---------------------------------------------------------------
// Set random positions
//---------------------------------------------------------------[/color]
mc_Create.prototype.render = function() {
this._x = random(600)-300;
this._y = random(600)-300;
};

[color=Gray]
//---------------------------------------------------------------
// Active random positions
//---------------------------------------------------------------[/color]
function mc_Create() {
[color=Gray] // set continual function to render word[/color]
this.onEnterFrame = this.render;
}

[color=Gray] //---------------------------------------------------------------
// Register mc_word with new functions
//---------------------------------------------------------------[/color]
Object.registerClass(“mc_word”, mc_Create);
#endinitclip[/color]

Now when you run the movie you will see lots of words flickering around, this effect doesnt matter - what matters is the fact that the words in the array ([color=Blue]wordList[color=Black]) have created separate instances and changed the text.

**Now heres the challenge! **I want to be able to add dynamic images to the instances, for example if i had a folder named images full of images - i would like to pull them in to the different instances.

This is a long post BUT i really need help. Even if you dont know how to do this, please let me know if you think it is possible or not.

Thanks for all your help

p.s attached should be the file.
[/color][/color]