Hey wondering why my text box isn’t resizing here. Everything works except that.
var totalPanelNum = 11;
var txtBorderColor = "0x084C8D";
var txtPanelHeight_4 = 159;
var txtPanelWidth_4 = 119;
for (var i = 1; i <= totalPanelNum; i++) {
trace ("txtPanelWidth_" + i);
_root.panel_set["panel_mc_" + i]["panel_mc_txt_" + i]._width = "txtPanelWidth_" + i; // my textbox doesn't resize :puzzled:
_root.panel_set["panel_mc_" + i]["panel_mc_txt_" + i].border = true;
_root.panel_set["panel_mc_" + i]["panel_mc_txt_" + i].borderColor = txtBorderColor;
}
I’m assuming because Flash thinks txtPanelWidth_4 is for example is text and not a variable?
This is rather annoying - thanks in advance.