4 Replies Latest reply on May 23, 2008 3:52 PM by clbeech

    for loop with .onRelease

    collosal-G
      Can anyone tell me why this isn't working? The "i" value always ends up on 3 for all 3 buttons.
      Thanks,
      g

      for (i=1; i<=3; i++) {
      t = this["button" + i + "_mc"];
      t.onRelease = function () {
      _root.panelSwitch (i);
      }
      }