Hi,
I have a conflict with LoaderMax. I did a proyect that it was loading a main container (main.swf) and a lot of childs.
This is the structure that I'm using:
main.swf => a.swf
b.swf
c.swf => d.swf
e.swf
For load I use the following code...
in main.swf:
var myContext:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain);
var queue:LoaderMax = new LoaderMax( { name:"mainQueue", onProgress:progressHandler, onComplete:completeHandler, onError:errorHandler, requireWithRoot:this.root} );
queue.append( new SWFLoader("a.swf", { name:"sectionA", estimatedBytes:3000, container:emptyContainerSection, x:0, autoPlay:false,autoDispose:false , context:myContext} ) );
queue.load();
then in a.swf tried this
var myContext:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain);
var queue:LoaderMaxqueue = new LoaderMax( { name:"mainQueue", onProgress:progressHandler, onComplete:completeHandler, onError:errorHandler, requireWithRoot:this.root } );
queue.append( new SWFLoader("b.swf", { name:"sectionB", estimatedBytes:3000, container:this, x:0, autoPlay:false, autoDispose:false , context:myContext } ) );
queue.append( new SWFLoader("c.swf", { name:"sectionC", estimatedBytes:3000, container:this, x:0, autoPlay:false, autoDispose:false , context:myContext } ) );
queue.load();
then in c.swf
var myContext:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain);
var queue:LoaderMaxqueue = = new LoaderMax( { name:"mainQueue", onProgress:progressHandler, onComplete:completeHandler, onError:errorHandler, requireWithRoot:this.root } );
queue.append( new SWFLoader("d.swf", { name:"sectionD", estimatedBytes:3000, container:this, x:0, autoPlay:false, autoDispose:false , context:myContext } ) );
queue.load();
at the end d.swf tried this
var myContext:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain);
var queue:LoaderMaxqueue = = new LoaderMax( { name:"mainQueue", onProgress:progressHandler, onComplete:completeHandler, onError:errorHandler, requireWithRoot:this.root } );
queue.append( new SWFLoader("d.swf", { name:"sectionE", estimatedBytes:3000, container:this, x:0, autoPlay:false, autoDispose:false , context:myContext } ) );
queue.load();
The problem is when i need to unload all the swf and remove the virtual memory that were using.
i tried this in main.swf
queue.unload();
and it didnt work but allegedly the progress turn 0% but the flash profiler show me that the objects never has been removed.
I tried too, the LoaderMax's empty method with the same results.
thanks!