4 Replies Latest reply on Oct 12, 2006 9:05 AM by A584537

    Actionscrip/onRelease/For Loop

    A584537
      hi, I have the following code.
      I make 15 buttons using duplicatemovieclip, and they are named dynmc+i; so, they are dymc0, dynmc1, dynmc2.
      This code kind of works, but if I push on any of the buttons it i become 0 and it's not supposed to be :P
      Anybody got any suggestions, tips, help?
      [code]
      for (var j=1; j!=16; j++) {
      _root["dynmc"+(j-1)].onRelease = function(){
      i=j-1;
      clearInterval(inter);
      slide();
      inter = setInterval(slide, interval);
      }
      }
      [/code]