title: Problem in a function actionscript
body: <p>How do I add a variable that varies with the dummy variable in a loop:</p>
  
  <pre><code>function resetAll(menuNum){
    trace(menuNum);
    for (i=0; i&lt;=7; i++){
      if(menuNum != 1){
        menu_all_mc.this["btn_"+i].gotoAndStop("off");
      }
    }
  }
  </code></pre>
  
  <p>this["btn_"+i] don`t work</p>
  
  <p>I need pass the btn name like: btn_1 and next loop btn_2 ...</p>