4 Replies Latest reply on Mar 5, 2010 3:18 PM by kglad

    loop once (play twice) in action script 8 beginner question

    stephanie_xxx

      Hi,

      I need to use actionscript 8 for a vendor. I need the movie to stop on the last frame after playing twice.

      I tried:

       

      ns.onStatus = function(info) {
        if (info.code == "NetStream.Play.Stop") {
        ns.seek(0);
        }
       }; 
      var i = 1;
      while (i <= 5) {
        duplicateMovieClip("square", "square" + i, i);
        i++;
      }
      and
      duplicateMovieClip ("movie_mc", "new_1", 1);
      all of which I got from the internet. None of them work. Can someone please give me the code?
      Thanks