method confirm

object confirm(string message,string title,int32 size);

Argumente

Zurückgegebener Wert

This method will pop a modal confirm dialog. This is a very simple dialog. The return value is an object with the following properties:
For more options use the openDialog method. See the scene::openDialog documentation for more information.
function onSample()
{
    var dialogResults = scene.confirm("Are you really sure you want to close?", "Confirm", 2);
    if (dialogResults)
    {
        shell.print("Dialog Results = " + dialogResults.results);
        if (dialogResults.results == true)
        {
            scene.close();
        }
        else
        {
            shell.print("Not really closing...");
        }
    }
}