method browseFolderDialog

string browseFolderDialog(scene scene,string title,string dialogMessage,string path);

Argumente

Zurückgegebener Wert

The method presents a system dialog chooser. The method returns current selection as a string. If the dialog is canceled the string will be null.
function onBrowseDirDialog()
{
    var dir = appUtils.browseFolderDialog(scene, "My Title", "My message in the dialog window.", "C:\\Documents and Settings");
    if (dir)
    {
        shell.print("selected directory = " + dir);
    }
    else
    {
        shell.print("No directory was selected.");
    }
}