|
|
 |
 |
|
 |
|
 |
|
 |
 |
|
 |
 |
|
 |
 |
|
 |
 |
|
 |
 |
|
 |
 |
|
| |
The
Advantage of FFish Scripting Language
II. Enjoy the FFish Script programming |
|
|
| //
Action script code
// The "prompt" command displays a
message box with the "ok" and "cancel"
button
// If the "ok" button is pressed,
the command sets the Action Script variable
"ret" to true
// Otherwise, the variable "ret" will
be set to false
fscommand("prompt", "Please choose,
Ok or Cancel, ret");
if (ret)
{
do thing 1
}
else
{
do thing 2
}
|
|
//
FFish Script code
var ret = Dialogs.msgBox("Please choose",
"Ok or Cancel", 1);
if (ret == 1)
{
do thing 1
}
else
{
do thing 2
} |
|
if
(ret)
{
do thing 1
}
else
{
do thing 2
}, |
| |
|
// Action script code
// The "prompt" command displays a
message box with the "ok" and "cancel"
button
// If the "ok" button is pressed,
the command sets the Action Script variable
"ret" to true
// Otherwise, the variable "ret" will
be set to false
// Frame 1
var ret = "undefined";
fscommand("prompt", "Please choose,
Ok or Cancel, ret");
// Frame 2
// Blank
// Frame 3
if (ret == "undefined") gotoAndPlay(2);
// Frame 4 if (ret)
{
do thing 1
}
else
{
do thing 2
}
|
|
|
|
|
|
|
|