Hi forum
Can anyone help me add a child to each movieclip in the array below?
I want the code in bold to increment with the wObj movieclips.
e.g.
wObj1 contains a loader called wObjIcon1 loading an image from wIconURL1
wObj2 contains a loader called wObjIcon2 loading an image from wIconURL2
…and so on.
public function makeWObjects(numNewWObjects) {
for (var i:uint=1; i<=numNewWObjects; i++) {
wObjCounter++;
wObj[wObjCounter] = new MovieClip();
wObj[wObjCounter].addChild(**wObjIcon1**);
**wObjIcon1**.load(**wIconURL1**);
addChild(wObj[wObjCounter]);
}
}
Thanks in advance
Matt