# Loop Q

**URL:** <https://forum.kirupa.com/t/loop-q/220923>\
**Category:** flash\
**Created:** [March 30, 2007, 2:10pm UTC](https://forum.kirupa.com/t/loop-q/220923 "2007-03-30T14:10:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Digitalosophy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/digitalosophy/32/1114_2.png) [@Digitalosophy](https://forum.kirupa.com/u/Digitalosophy)\
**Post date:** [March 30, 2007, 2:10pm UTC](https://forum.kirupa.com/t/loop-q/220923/1 "2007-03-30T14:10:44Z")

</div>

Hey wondering why my text box isn’t resizing here. Everything works except that.

```auto

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.
