Answered
unloadClip() problem
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?
loadButton.onRelease = function() {
var myLoader:MovieClipLoader = new MovieClipLoader();
myLoader.loadClip("truck.swf", clipHolderThing);
};
unloadButton.onRelease = function() {
myLoader.unloadClip(clipHolderThing);
};
What am I missing here?