add and remove a second view

Software: Away3D 4.x

louis87, Jr. Member
Posted: 14 November 2011 09:13 PM   Total Posts: 46

Hi,

I have 2 views in my project, and I want to hide the second one. I tried to use the alpha and visible parameters of view but it doesn’t work, and removeChild(view2) doesn’t work either. The result is the 2nd view frozen, but it is still on the top of visualization.

There is a way to do that? Thanks!

   

didulica, Newbie
Posted: 11 December 2011 12:09 AM   Total Posts: 2   [ # 1 ]

Hi there,

I had the same issue ...
The thing is, Away3D v4 uses Stage3D, i.e. it renders below the stage object.

You can remove ‘the frozen view’ by calling view.stage3DProxy.dispose(); method - this releases the view rendered at Stage3D.

Hope this helps.

   

louis87, Jr. Member
Posted: 11 December 2011 07:41 AM   Total Posts: 46   [ # 2 ]

Hi didulica,

Thanks for that solution, it’s a big help!

   

didulica, Newbie
Posted: 11 December 2011 01:49 PM   Total Posts: 2   [ # 3 ]

You’re welcome wink

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X