-
1. Re: Unloading my progress bar
Smef Aug 14, 2009 1:12 PM (in response to BearHNC)I think the code you are looking for is removeMovieClip(movieclip);
-
2. Re: Unloading my progress bar
BearHNC Aug 14, 2009 1:51 PM (in response to Smef)I wound up doing this instead:
var img_mcl:MovieClipLoader = new MovieClipLoader();
var mclListener:Object = new Object();
mclListener.onLoadProgress = function(target_mc:MovieClip, numBytesLoaded:Number, numBytesTotal:Number) {
my_pb.setProgress(numBytesLoaded, numBytesTotal);
};
mclListener.onLoadComplete = function(target_mc:MovieClip) {
my_pb._visible = false;
};
img_mcl.addListener(mclListener);
this.createEmptyMovieClip("image_mc", 20);
img_mcl.loadClip("ModularWebsite.swf", image_mc); -
3. Re: Unloading my progress bar
Smef Aug 14, 2009 2:13 PM (in response to BearHNC)What you are doing is just making the MC invisible, not actually removing it from the scene.
if you enter:
removeMovieClip(my_pb);
your movie clip will actually be removed, reducing (even if only slightly) the resources needed to run your flash movie.

