View Full Version : Problem with PDF in Flash MX
ace_369
11-24-2004, 03:54 PM
hi guys how do i assignment a button in flash so that when i click the button it will automatically launch the acrobat reader. Because in my webpage i have to create a button where if i click the button it will open a file using the acrobat reader. From what i searched through the web they told me to convert my PDF into a .exe file and later use this action in my button
on (release) {
fscommand ("exec", "filename.exe");
}
so i tried doing this but when i click my button it does not launch the acrobat reader. So can anyone tell me where did i go wrong? thx a lot guys!
Gibberish
11-24-2004, 05:01 PM
is this online or on a cd? I launch PDF's like so:
getURL("http://www.mysite.com/myPDF.pdf");
ace_369
11-25-2004, 01:31 AM
oh yeah this PDF that i want to launch is on my HDD. So how do i go about doing this? Thanks a lot!
splict
11-25-2004, 01:41 AM
This may not suit your needs, ace_369, but just in case...
I've been using Flash Paper 2 (http://www.macromedia.com/software/flashpaper/) lately. Its only $79 and it will convert your pdf into an swf that you can load right into your movie just like if it was another movieclip.
If you want to use just a pdf, though, as in your original question, I think you should do a search for fscommand and you willprobably come up with some solutions. :D
ace_369
11-25-2004, 03:43 PM
i searched through the net and i managed to find that flash mx exec function is greatly being crippled. Bu there was this article saying about how to get around this problem. It told me to create a folder called "fscommand" and have this folder in the same direcctory as the flash projector. I was wondering what is this flash projector that they are talking about. I am sorry i am very new to flash. Thanks for ya feedback guys!
splict
11-25-2004, 04:50 PM
The fscommand/exec is not really a problem/solution - its just the way to do it. As far as what a projector is, it is your regular flash file - like your .swf - except it is an .exe. This way your viewers don't have to have the flash player installed. This is the recommended way to distribute flash files on cd. You will find the option to export this under File->Publish Settings. Again, I believe this has been covered on the forum already and a good search should bring up some tips or helpful info for you. :D
ace_369
11-26-2004, 01:57 AM
ok i tried what you said by going to file > publish settings and have managed to create a flash projector. I also managed to get the PDF file that i want to open up already. Thx a lot for ya info guys!
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.