This method will pop a modal alert dialog. This is a very simple dialog. The return
value is an object with the following properties:
- results - This is a boolean value. If true, the OK or Yes button was
pressed. All other cases value is false.
- promptValue - The text in the input field. (only valid for prompt
method)
For more options use the openDialog method. See
the
scene::openDialog documentation for more information.
function onSample()
{
scene.alert("Hello world", "title", 1);
}