Specific FSCommands for the Screen Saver

Macromedia Flash® can use the FSCommand action to control the playback and appearance of projectors, as well as launch external applications. The FSCommand action takes two parameters: a command and an argument. In some cases, an argument is not required.

Axialis Professional Screen Saver Producer has implemented 4 new commands to perform specific tasks.

Open an URL from the Flash screensaver

Sometimes it is useful to open an URL (in a separate browser window) when the user performs an action (a click on a button). An action already exists in Flash® to perform this: getURL(). For an unknown reason, this action (which is executed by Flash) does not work when the screensavers is executing. It may even cause a crash. Do not use this action.

If you want the screensaver to open a web page in a separate window, use the FSCommand "OpenURL". Here is an example of script that opens an URL when the user release the mouse button on a specific area:

on (release) {

  fscommand ("OpenUrl", "http://www.axialis.com");

}

Close the Flash Screensaver

If you want to close the screensaver using an action, use the FSCommand "CloseScreensaver". DO NOT use the "quit" command. Here is an example of script that closes the screen saver when the user release the mouse button on a specific area:

on (release) {

  fscommand ("CloseScreensaver");

}

Open a Message Box

To open a dialog box which displays a text message, use the FSCommand "MessageBox". Here is an example of script that opens a message box when the user release the mouse button on a specific area:

on (release) {

  fscommand ("MessageBox","This is the message");

}

Open the Activation Box

If you created a demo/limited screensaver, it could be useful to open the ActivationBox using the FSCommand "ActivationBox". Here is an example of script that opens the box when the user release the mouse button on a specific area:

on (release) {

  fscommand ("ActivationBox");

}