cloanto.comProducts & ServicesSupport

Knowledge Base
Previous Page
End of Page
TITLE

MenuBox and Macromedia Flash FSCommand "Exec"

 

TOPIC

Q: Can I use MenuBox to open documents and launch executables via the FSCommand "exec" in a Macromedia Flash Projector?

 

DISCUSSION

A: Yes. MenuBox can not only be invoked from FSCommand "exec", but it can actually be used to overcome some of its limitations, especially those introduced since the release of version 6 (Flash MX) of Macromedia Flash Player, where for security reasons applications have to be stored in the "fscommand" directory of the projector, and paths as well as parameters passed to the application are ignored. By invoking MenuBox.exe and specifying a document (e.g. PDF, Word, etc.) file name and options in MenuBox.ini, you can overcome this limitation.

The following script launches MenuBox, which is in the "fscommand" folder on the same level as the projector:

on (release) {
    fscommand ("exec", "MenuBox.exe");
}

An additional MenuBox.ini file can be placed in the same directory as MenuBox.exe to specify another executable application, optionally with a different directory path and command line options, or even a document name to open with the default viewer. For example, MenuBox.ini could consist of the following lines:

[Project]
License = "12345-12345-12345-12345"

[Windowless]
File=MyDocument.pdf
Parameters=MyParameters
Directory=MyDirectory

All other MenuBox commands and options are also supported. It is for example possible to execute conditional code to install viewers or for fallback actions, etc.

Related Links

 

Article Information
Article ID:13-158
Platform:Windows
Products:Menubox
Additional Keywords:FS Command
Last Update:2008-01-21
Your feedback is always appreciated. It is safe to link to this page.
Top of Page
Legal NotesPrivacy Notes