Using FScommand in flash, you can launch external applications.
Things to note are -
1.
You can only do this from a projector (exe made using publish),
not a SWF.
2.
The external executable file has to be in a subfolder named
"fscommand" in the same folder as your projector file (this is
for some security reasons).
3.
Using this you can only launch an EXE or a BAT file.
4.
Flash MX does not let you pass any parameters to the external
executable. If you want to work in flash 5, this link will be of particular
interest to you http://flashtools.net/.
Now, if you want to launch anything like an Excel or Word document or any other
document like a PDF or maybe even a PowerPoint presentation, you this tool
by flashgeek.com.
This is the code that will go on any button in your flash projector file.
on (release) {
fscommand ("exec", "flashgeek.exe");
}
Now flashgeek.exe
goes in the fscommand folder along with the text file "flashgeek.txt".
You have to specify the path and file name of the object you would like to open
in flashgeek.txt (the path can be relative or hardcoded).
Please note
1.
Name the executable and the text file the same name (like
flashgeek.exe and flashgeek.txt).
2.
For each document that you want to open, you'll have to have
a set of the exe and text file like flashgeek1.exe and flashgeek1.txt and
so on.
You can also check freemx.
It is a similar tool with advanced features like detecting flash plug-in etc.
Opening pdf documents from flash projector posted by: Tim on:Dec 14, 09 1:15 am
Worked like a charm! gave me a headache though before I figured out that my pdf file, the flashgeek.exe and the flashgeek.txt had all to be in a folder called fscommand.
How to use flashgeek posted by: neha on:Jun 22, 09 5:52 am
Hello,
I want to open a powerpoint presentation (PPT) file using the fscommand and flashgeek. I created a subfolder called 'fscommand' and placed the flashgeek.txt, flashgeek.exe and my exe file in this folder. But when I tried running my exe file it was blank. When I tried viewing the html file by F12, it showed me some warning.