What’s up with the [] in [“iconLoad” + i]?? I think it should be this.[“iconLoad” + i]
And the . in the createEmptyMovieClip??
Try this:
mc=createEmptyMovieClip("iconLoad"+ i, i+10);
//mc is a reference to your clip
mc.iconName = IconArray*;
loadMovie("pIcon.swf",mc);
But the problem that could happen is that when you load the swf in mc, it erases mc completely, so you lose your variable. Can’t you put it anywhere else?
I don’t think I can put it some where else, because this code is all contained within an 'for" statement.
Everytime around it creates another movie clip for each item in an array.length.
Then it sets the current clips iconName to the array value at that increment.
Then within each loaded pIcon.swf I want there to be different iconName variable values. These define the icon label and icon image (iconName + “.jpg”).