Support - Forum aa
« Back to Support» 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
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.
I have used dispose but i didnot used in proper way.
Thank u once again.
Now, I rectified my problem with dispose.
Popular
- 1. Question of Alpha sorting system
- 2. Rndering issue on AIR Mobile build
- 3. Problems with bone position?
- 4. Is it possible to make a primitive...
- 5. Messed up textures in Flare 3d Studio
- 6. Moving "by hand" the corners of a Plane
- 7. Shapes, splines and knots
- 8. Diferencia entre Flare3D Studio y...
- 9. Transform between two states
- 10. ReferenceError: Error #1074
