method onSceneClosed

void onSceneClosed(scene scene);

Argumente

Zurückgegebener Wert

This method is called after a scene is closed. The entire scene DOM has been destroyed by this point. The only thing left is the scene library. The root box cannot be accessed at this point.
function SceneListener()
{
    this.onSceneOpen = onSceneOpen;
    function onSceneOpen(aScene)
    {
        if (aScene)
        {
            shell.print("Opening Scene = " + aScene.url);
        }
    }

    this.beforeSceneClose = beforeSceneClose;
    function beforeSceneClose(aScene)
    {
        if (aScene)
        {
            shell.print("Closing Scene = " + aScene.url);
        }
    }

    this.onSceneClosed = onSceneClosed;
    function onSceneClosed(aScene)
    {
        if (aScene)
        {
            shell.print("Closed Scene = " + aScene.url);
        }
    }
}