alright i’m trying to create a menu dynamically as I am learning about the for loop and creating things with actionscript
i have a loop set up to create text fields based on an array and put them in a line
the line is too long so i would like to make it into two lines but i don’t know how to do that … i’ve only figured out how to put it into one line so far
also the font property and the size property for the created text fields isn’t working
drop this code into a frame in a blank movie to see what i’m talking about
var link = ["AESD", "Board", "CHMO", "COMET", "CCCC", "DAO", "EXEO", "FCSD", "GOVA", "HBSB", "HRSD", "INVO", "ISOF", "ITSD", "LEGO", "MBSB", "OFAS", "OSSD", "PAOF", "PLRD", "RRP", "RSTP", "SLIP", "STP"];
for (i=0; i<link.length; i++) {
_root.createEmptyMovieClip("mc"+i, i);
with (_root["mc"+i]) {
createTextField("label", 1003, 0, 20*i, 40, 14);
with (label) {
background = true;
border = true;
type = "dynamic";
font = "Arial";
size = 11;
textColor = 0x000066;
text = _root.link*;
}
}
}
your help is greatly appreciated =)