Thanks again,

I might try it some other time. For now, I'll build the same project but having all assets in the fla. I think it will make it simpler.

By the way, my original idea is to load the large images in a scroll pane.

I used the same file and changed the callFullImage function to load a scroll pane dynamically like so:


function callFullImage(myNumber):Void {
myURL = myImages[myNumber].attributes.full_url;
this.createObject("ScrollPane", "cspScrollPane", this.getNextHighestDepth());
cspScrollPane._x = 200;
cspScrollPane._y = 10;
cspScrollPane.setSize(800, 620);
cspScrollPane.hScrollPolicy = "off";
cspScrollPane.contentPath = "images/"+myURL;
}

it worked well but as soon as I clicked the second thumb, another scrollpnae component appeared on the top left corner of the page. I have a scrollpane component in the fla's library.