This content has been marked as final. Show 3 replies
one simple way is to use mProjector to create your flash app - it adds
and openDocument function into AS and also an executeApplication..
> I'm trying to call .PDF files stored locally on a CD from my Flash
> projector. Using a 'VIEW' button, I want to launch Acrobat Reader and
> open a pdf from the CD.
> How is this done?
Flash Screen Saver, Application and Wallpaper tools
Now that you've heard from the "buy my product too" sheep, here's a
FREE solution you can try
Check out the original thread from FlashKit (link below) to find a
link to the ZIP file with the examples that the post below talks
Here's a BAT file that will make sure the Acrobat Reader is made the
topmost application after your PDF file is opened. It uses a BAT file
for loop to repeatedly call topmost so the PDF has time to load. In
the BAT file in the ZIP file I attached there are a lot more X's which
translates into a better chance of topmost working.
----- code ----
set repeat=x x x x x x x x x x x x x x x x x x x x x
for %%i in (%repeat%) do call topmost Adobe
----- /code -----
In the ZIP file I also included a file called test.exe which is a
renamed copy of my PROXY utility to hide the ugly DOS box that appears
when you run a BAT file.
Put everything in the ZIP file in the fscommand folder, then if you
want to just run the BAT file you can just add fscommand("exec",
"test.bat"); to your FLA.
If you use fscommand("exec", "test.exe"); you'll be using the proxy
utility to launch the BAT file indirectly. What this does is hide the
DOS box that appears when you run a BAT file.
If you want to open other PDF files, just make copies of TEST.BAT and
TEST.EXE and rename them to say MYFILE.BAT and MYFILE.EXE and edit
MYFILE.BAT to open the correct PDF file. Then use fscommand("exec",
"myfile.exe") to open the PDF.
You'll need a BAT and EXE file for each PDF file you want to open.