Support - Forum aa

« Back to Support
Pre-Release 2.0 » unloading flare3d external swf problem

» unloading flare3d external swf problem

Posted on 02.01.2012 by veeravalli, jyothi
I am trying to load external swf and wnt to remove external swf and add another external swf its give me error _swfLoader = new Loader(); _swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadHandler); _swfLoader.load(new URLRequest("External.swf")); private function loadHandler(event:Event):void { stage.addChild(removeswfBtn); removeswfBtn.x = 10; removeswfBtn.y = 50; removeswfBtn.addEventListener(MouseEvent.CLICK, removeswf); childSwf =myLoader.content as MovieClip ; addChild(childSwf) } private function mousedouble(evt:MouseEvent):void { //_swfLoader.unload(); removeChild(childSwf); childSwf = null; } I am getting error Error: No more Stage3D's availables. at flare.basic::Scene3D/addedToStageEvent()[Z:\projects\flare3d 2\src\flare\basic\Scene3D.as:350] at flash.display::DisplayObjectContainer/addChild() please help me
|
Share this
 
Reply By Nehmad, Ariel 02.01.2012
Stage3D only has support for 4 context instances, so you need to explicitly dispose the old scenes in order to create new ones. 
Reply By veeravalli, jyothi 02.02.2012
Thank u very much..

I have used dispose but i didnot used in proper way. 
Thank u once again. 

Now, I rectified my problem with dispose.