-this is supposed to make multiple buttons with text(not clickable yet)
-it seems to coppy over, or remove the previous myButtons* movieclip each time it goes through the loop.
-there are 3 strings in buttonText.length
-on the output i get 0,1,2
-but on the screen I only see one gradient (its only a pink box, but one problem at a time)
-the box appears where roughly the 3rd button should be.
-full code attached
-I am noob help!
var myButtons:Array = [buttonText.length];
var g:Gradient = new Gradient();
var t:GlowText = new GlowText();
for (var i:int=0;i<buttonText.length;i++){
trace(i);
myButtons* = new MovieClip();
myButtons*.x = menuXValue+(imenuXSpacing);
myButtons.y = menuYValue+(imenuYSpacing);
myButtons.addChild(g.returnGradient(fillType,colors,alphas,ratios,matrix));
myButtons*.addChild(t.returnGlowText(buttonText*,myFormat1,myFormat2));
addChild(myButtons*);
}