| Command | Arguments | Purpose |
|---|---|---|
| exec | Path to application | Executes an application from within the Advanced Projector or opens the registered file type with associated application. In Macromedia Flash MX an external application must be in a folder named "fscommand" which is a direct subfolder of the projector. |
| shellopen | The full or relative path to the registered file type | Opens the registered file type with associated application. For instance .XLS file will be opened with Microsoft Excel (part of Microsoft Office). |
| quit | None | Closes the Advanced Projector. |
The "exec" command is used to launch an external application or registered file type with associated application. The external application or registered file type must be placed in a subfolder named 'fscommand' that should be located in the same directory as the Advanced Projector which uses the "fscommand". This security restriction helps prevent malicious use of the exec option.
on (release) {
fscommand ("exec", "someApplication.exe");
}
This command is introduced in SWF & FLV Toolbox to open any registered file type with associated application except executable files (.COM, .EXE, .BAT, .CMD). This provides more security to you. As an argument you must provide the full or relative path to the file. Please, note that you must use "/" (forward slash) as a directory separator.
on (release) {
fscommand ("shellopen", "C:/Documents and Settings/TEST/TEXT.DOC");
}
This command causes the Advanced Projector to exit.
on (release) {
fscommand("quit");
}