How to fully delete View3D from the stage??

Software: Away3D 4.x

programmist, Newbie
Posted: 25 June 2012 11:57 AM   Total Posts: 13

I have some ModuleManager object that is used to load and unload game modules. Every game module is represented as a single swf file. One of game modules uses Away3D and so adds View3D object to the stage.
The problem is to unload such game module. I can hide View3D but I can’t find any way to fully delete it from the stage. Can anyone help me?

   

Richard Olsson, Administrator
Posted: 25 June 2012 03:47 PM   Total Posts: 1192   [ # 1 ]

Remove the View3D instance from the stage, and invoke it’s dispose() method. It will then release the Stage3D related resources and the stage will return to it’s normal background color.

Note though that disposing the View3D does not automatically dispose everything else, so make sure that you have proper memory management in place.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X