Skip navigation
    5 Replies Latest reply on Aug 11, 2011 12:24 PM by kglad

    MovieClip Preloader keeps looping movie

    LatashaMaria

      MovieClip Preloader keeps looping movie

      I made a MovieClip preloader and everything workes fine.  The problem is the movie that I am loading  keeps looping.  Is there any way to stop this from looping?  I used  Flash CS5, AS2.

      Here is the code that I am using:

      bar._visible = false;
      border._visible = false;
      this.createEmptyMovieClip("container", "100");
      my_mc = new MovieClipLoader();
      preload = new Object();
      my_mc.addListener(preload);
      preload.onLoadStart = function(targetMC) {

      trace("started loading "+targetMC);
      container._visible = false;
      bar._visible = true;
      border._visible = true;
      pText._visible = true;

      };
      preload.onLoadProgress = function(targetMC, lBytes, tBytes) {

      bar._width = (lBytes/tBytes)*100;
      pText.text = "% "+Math.round((lBytes/tBytes)*100);

      };
      preload.onLoadComplete = function(targetMC) {

      container._visible = true;
      border._visible = false;
      bar._visible = false;
      pText._visible = false;
      trace(targetMC+" finished");

      };
      //default image
      my_mc.loadClip("main.swf", "container");

        More Like This

        Legend

        • Correct Answers - 10 points