PDA

View Full Version : clearing a level



moai
September 3rd, 2004, 05:17 AM
Is there a way to clear a loaded swf from a level without loading something in its place?
I just want to be able to clear out levels that aren't in use anymore.

SeaPink
September 3rd, 2004, 05:50 AM
you can use
unloadMovieNum(level)
this will unload the loaded swf from the level specified

moai
September 3rd, 2004, 06:02 AM
that's ok to use in MX2004??

Im now using loadClip.

SeaPink
September 3rd, 2004, 06:16 AM
then you can use
yourmovieclipname.unloadClip(target)

moai
September 4th, 2004, 02:37 AM
ok.. i obviously have some sort of syntax problem.

here's the loadClip on the root.


jayMCL.loadClip("nav.swf",1);


here's what im trying to do from another swf on level 5



_level0.jayMCL.unloadClip("bio.swf", 6);


here is what jayMCL is::


var jayMCL:MovieClipLoader = new MovieClipLoader();
var jayListen:Object = new Object();

jayMCL.addListener(jayListen);

so to unload do i still have to access the clipLoader?

Im still a little wishy washy on the new MX loadClip