3 Replies Latest reply on Jan 14, 2008 8:57 PM by kglad

    Using MovieClipLoader to load paused movieclip

    arcdesigner
      I am using MovieClipLoader to load an external swf file into a movieclip container. I would like it to be paused on load so that I can use a play button to play it. I can't seem to get it to load in a paused state. My code follows:

      stop();

      var clipPos:String = "First";
      var clipNum:Number = 1;

      _root.skipBackButton._visible = false;
      _root.skipForwardButton._visible = true;

      playBtn._visible = false;
      arcLoaderAnim._visible = false;
      counter._visible = false;
      my_mc = new MovieClipLoader();
      preload = new Object();
      my_mc.addListener(preload);
      my_mc.getProgress(

      preload.onLoadStart = function(targetMC) {
      trace("started loading "+targetMC);
      clipContainer._visible = false;
      still._visible = true;
      arcLoaderAnim._visible = true;
      counter._visible = true;
      };

      preload.onLoadProgress = function(targetMC, lBytes, tBytes) {
      counter = "% "+Math.round((lBytes/tBytes)*100);
      };

      preload.onLoadComplete = function(targetMC) {
      still._visible = false;
      clipContainer._visible = true;
      arcLoaderAnim._visible = false;
      playBtn._visible = true;
      counter._visible = false;
      trace(targetMC+" finished");
      };

      my_mc.loadClip("summerOfLove.swf", "clipContainer");

      Any help would be greatly appreciated. Thanks.

      Jim