3 Replies Latest reply on Sep 27, 2006 12:56 AM by Peter Lorent

    unloadClip() problem

    Sparkerman1711 Level 1
      I can't seem to figure out how to use the unloadClip() method. I'm using the following code on the first frame of a movie. Basically it should work like this. loadButton loads the truck.swf file (which is does), then unloadButton should unload the clip (which it doesn't). clipHolderThing is the name of an empty movie clip instance that is already on the stage

      loadButton.onRelease = function() {
      var myLoader:MovieClipLoader = new MovieClipLoader();
      myLoader.loadClip("truck.swf", clipHolderThing);

      };
      unloadButton.onRelease = function() {
      myLoader.unloadClip(clipHolderThing);
      };

      What am I missing here?