Hi! (Quick?) easy fix is to remove the view, and add the view and models etc again. I think there was a post where someone found the leak, but I don't think it's been implemented yet. -Pete
On Wed, Jan 6, 2010 at 5:19 PM, dimanjy <[email protected]> wrote: > Hello guys and Happy New Year! :) > Let's come back to work :) > > I have some problems with RAM when using Loader3D with Collada parser. > I'm creating an app with collection of 3D models. When user select > some model from ListBox then new Collada model loaded and parsed. > Something like this: > > class { > > var loader3D:Loader = new Loader3D(); > var model:ObjectContainer3D; > > function init():void{ > loader3D.addOnSuccess(onModelParsed); > } > > function onListItemSelected():void { > view.scene.removeChild(model); > model = null; > loader3D.parser = null; > loader3D.loadTextures(colladaFiles[selected_item + '.DAE'], new > Collada( { materials: materialsLibrary })); > } > > function onModelParsed(e):void{ > model = e.target.handle as ObjectContainer3D; > view.scene.addChild(model); > } > > } > > Every time user select an item RAM grows +2Mb. I'm afraid to imagine > if user wish to look at 100 models or more :) > Maybe someone had the same problem and already solve it? > -- ___________________ Actionscript 3.0 Flash 3D Graphics Engine HTTP://AWAY3D.COM
