Topic: Unloading TiltViewer from another SWF

Felix,

I'm using TiltViewer embedded into another SWF file and it works great.

But when I want to unload TiltViewer, using unload and removeChild, TiltViewer unloads, but let the ENTER_FRAME event listener running, which causes errors and performance decrease when loaded several times.

Is there a public function that I can use before unloading, or with the UNLOAD event to stop the event listeners ?

Thanks in advance,

Didier

Re: Unloading TiltViewer from another SWF

Try just turning off the visibility on TiltViewer. You won't lose much performance since the 3D rendering will be disabled.

Felix Turner
SimpleViewer Support Team.

Re: Unloading TiltViewer from another SWF

In fact I have different pages loading each one a TiltViewer linked to a different XML file,

When I change of page the old one is removed from the stage and the new created.

The errors appears when the page is removed from the stage even if the visibility is disabled

Isn't it possible to unload completely TiltViewer and to stop the 3d engine ?