Topic: How to unload tiltviewer?

Hello,
how do I unload tiltviewer in as3 when I change page in my flash?

I used
ldr.unload();
But I have this error message:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at away3d.core.clip::Clipping/screen()
    at away3d.containers::View3D/clear()
    at away3d.containers::View3D/render()
    at TiltViewer/::onEnterFrame()

Thanks !

Re: How to unload tiltviewer?

Check the flash_embed_multiple.fla example. To unload TV you need to do this:

if  (Object(ldr.content)._app != null){
    Object(ldr.content)._app.kill();
    ldr.unload();
}
Felix Turner
SimpleViewer Support Team.

Re: How to unload tiltviewer?

Thank you for your reply !

It's ok, now !