View Full Version : Open PDF with button
willythekid
11-24-2005, 04:03 AM
Hi,
I want the user to be able to open a PDF document in Acrobat Reader
by pressing a button in my Flash projector. I know that there is a thread about this already in the forum, but I did not get it. It was about Bat
programming and I don't know what that is. Can someone help? Must
be some easier way to do this?
Regards
Willythekid
oldnewbie
11-24-2005, 04:17 AM
Nope, not really... Unless you use some 3rd party software...
Are you on Mac or PC?
till i now you cannot open a program outside flash but just the ones located in an fscommand folder next to the projector...or try using Zinc 2.0
willythekid
11-24-2005, 08:21 AM
I'm on a Mac, but the end product (the projector) is going to be for PC.
willythekid
11-24-2005, 10:53 PM
OK, I found a solution and I want to share it with you guys. Info came from gsolo_01 at Flashkit.
In your flash document, create a button. Give it the following actionscript:
on (release) {
fscommand("exec", "openpdf.bat");
}
Publish a PC projector.
Create a folder, witch you put at the same level as the projector. Call this folder fscommand.
Open Notepad in a PC. Write the following code:
@ echo off
start ..\myFile.pdf
close
Save this file as "openpdf.bat" (keep the quotes) inside of your fscommand folder. This becomes your .batfile.
Put your "myFile.pdf" on the same level as the projector and the fscommand folder. Now it should work!
/willythekid
oldnewbie
11-25-2005, 12:10 AM
And the above is not using a batch file? :rolleyes:
willythekid
11-25-2005, 03:10 PM
yes it is using a bat file, but it describes how to make the batfile which might be useful to people not used to pc:s (like myself!).
Hexstatic
11-25-2005, 03:45 PM
... and it works fine from PC projectors
on (release) {
getURL("my.pdf");
}
as long as my.pdf is in same folder...
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.