| Previous | Next | |
Windows: Not Yet Available
Macintosh: Flash 8 or 9 AS2.0 SWF + mProjector
2.0; replacing mProjector
1.1 async
mApplication.messageDialog(dlgTitle:String, dlgMessage:String, defaultButton:String, alternateButton:String, otherButton:String) : NumberdlgTitle - The message-dialog title.
dlgMessage - The message appearing to appear in the message-dialog.
defaultButton - Label for the default button.
alternateButton - Label for the alternate button. An "alternate" button will not be displayed if this label is not specified.
otherButton - Label for the other button. An "other" button will not be displayed if this label is not specified.
A number.; ; A number corresponding to selection: 1=Default, 0=Alternate, -1=Other.
Method; Launches standard Mac message dialog window. This command has been replaced by the crossplatform command mSystem.messageBox().
This ia an example of a three button modal dialog box.
var title1:String = "Luck";
var message1:String = "Are you feeling lucky?";
var defaultButton:String = "Yes";
var alternativeButton:String = "No";
var otherButton:String = "Ask me later";
var buttonSelected;
var title1:String = "Mood";
var message1:String = "How are you doing today?";
var defaultButton:String = "Good";
var alternativeButton:String = "Terrible";
var otherButton:String = "Ask me later";
var buttonSelected:Number;
messageDialog_btn.onRelease = function(){
answer = mApplication.messageDialog(title1,message1,defaultButton,alternativeButton,otherButton);
switch (answer) {
case: 1
gotoAndPlay("Yes_Answer");
break;
case: 0
gotoAndPlay("No_Answer");
break;
case: -1
gotoAndPlay("AskMeLater_Answer");
break;
};| Questions or Feedback? | Previous | Next |