11 Replies Latest reply on Mar 6, 2007 6:50 AM by kglad

    Can't erase a duplicate movieclip

    trish00
      Hi,

      I've got the following actionscript to create a flame which works great. But i want to erase the flame at frame 90 and can't seem to get it to disappear. Putting a stop command just halts the rest of the animation. Can anyone offer some advice?


      Frame 1:
      i = 1;
      max = 60;
      x = getProperty("fire", _x);

      Frame 2:
      if (Number(i)<=Number(max)) {
      duplicateMovieClip("fire", "fire" add i, i);
      i = Number(i)+1;
      }