Dialogs.promptModal() This page was last modified over 30 day(s) ago and has 0 comment(s)


Back to Dialogs Class Summary

Availability
Windows, Mac OSX, Linux

Usage
mdm.Dialogs.promptModal(message:String, promptType:String, promptStyle:String):Boolean

Parameters
message:String - The message to be displayed

promptType:String - Prompt Type

promptStyle:String - Prompt Style

Returns
A Boolean

Description
Executes a modal dialog prompt with the specified parameters.

Notes
Valid values for promptType are:

yesno
okcancel
abortignore

Valid values for promptStyle are:

alert
error
info
confirm
empty

The value returned will be either 'true' or 'false'. For example, if a "yesno" prompt type is specified, the boolean 'true' will be returned if the 'yes' button is clicked and 'false' if the 'no' button is clicked.

Example Code
var Result:Boolean = mdm.Dialogs.promptModal("Does Zinc Rock?", "yesno", "alert");

mdm.Dialogs Class Example Downloads
No Example Downloads Available


Registered Users must be logged in to 'MyAccount' to add a Comment - Log In Here
  After Logging In, Click Here to Refresh This Page