addChild(new thumb); how? adding dynamic var with addChild
Posted on 2011-03-20
I currently have any array representing some linkage names from my library. The images are added to an instanced movieclip on stage.
var thumbs:Array = new Array("thumbSliderImage1","thumbSliderImage2","thumbSliderImage3");
Example where " thumbSliderImage1" is a linkage from library.
How would I go about replacing "thumbSliderImage1" with lets say an index from my array, like thumb - thumbSlider1.addChild(new thumb); ?