How to remove View/Scene from Stage to replace with another?

Software: Away3D 4.x

dubletar, Member
Posted: 11 June 2012 11:26 PM   Total Posts: 73

Hi again all.

Does anyone know how to remove a scene/view from the stage?

I have one View and its View.scene, but I am trying to remove the View (and by association the view.scene) to replace with a new view, which has its own scene?

Any help is greatly appreciated.

   

Richard Olsson, Administrator
Posted: 16 June 2012 11:36 AM   Total Posts: 1192   [ # 1 ]

You should be able to just removeChild() and when you addChild() the new one it should take over. Is this not working for you? If so, please file a bug over at GitHub.

However, I’m wondering why you’d want to do this the way that you are describing. Why not just have a single view and change the scene that it displays by re-setting it’s scene property?

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X