Jump to content
Search Community

jaysin

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by jaysin

  1. I'm looking to do something similar, but a little different I have an application that is loading in SWF's as "slides" through an XMLLoader. Each slide can contain whatever, but usually contains video or audio. With 30+ slides to load I'd like to keep the preloading going, but then immediately unload the file so it's not ballooning the memory footprint of the entire application. I'd prefer not to use your dispose method since I rely on calling the loaders named in the XMLloader elsewhere in the application. I was trying to load the list of slides in the XMLLoader with load="false" and then build a for each loop that would load each individual SWFLoader and then onComplete unload() it. But this is where I've been defeated. I'd appreciate any code examples or suggestions on a better way to do this. Here is my slides.xml setup Example name 1 Example name 1 I don't have much for AS3 code that's working, but I'll give you a place to start private function loadSlides ():void { var loader:XMLLoader = new XMLLoader("slides.xml",{onComplete:loadNDump}); loader.load(); } private function loadNDump (e:LoaderEvent):void { //extract the SWFLoaders from slides.xml //load() and then unload() them } Many thanks in advance, Jaysin
×
×
  • Create New...