View Full Version : Help! How to open PDF file within Flash projector?
gtoffey
March 22nd, 2002, 11:23 PM
I am creating a Flash projector to work on a CD for a client to distribute. There has to be a listing of their PDF's in the flash program, that when clicked, will open the actual PDF in a separate window. I found one comment in this site to use "GetURL", but found out it is ONLY for HTML. There was mention of setting up the FSCommand to open another application, such as a PDF file, but how? I have the files in the same directory and tried putting the file name in the "GetURL" (the PDF file), but just freezes when trying to open. Can you help?
Also, is there a way they can drag and drop the PDF files to the desktop, that has the listings of the PDF's and save to the hard drive?
eyezberg
March 24th, 2002, 02:04 PM
You can link to a pdf using getUrl, the problem is Acrobat Reader!
If the user doesn't have it installed, nothing will happen!
So, best to put a "get acro reader" pic/link before allowing access to the pdfs, and instruct the users how to use it.
FScommand(exec, programm) doesn't work on files, only on executables/software, like notepad.exe, and you need to know/provide the exact path on the users machine to the exe, which i think is impossible (none of my programms are installed on C: for example, i use an extra partition..)
hanzi
May 12th, 2009, 08:46 AM
Hi
I have the same problem.
function onClick1(event:MouseEvent):void{
navigateToURL(new URLRequest("content/D AND D TEMPLATE APR 09/"));
}
This is the code for my button that should open a file on the disc. What happens now when I click, it opens the web browser with the discs directory. Is there another way of doing this?
Oh, I'm working with AS3
davec
September 3rd, 2009, 04:22 PM
I've had the same problem and have been saved at the last minute by http://www.bullrushsoft.com/ (Bullrushsoft). I hunted about for days for a solution as the Flash produced projector would only open the PDf in a browser, and it wasn't embedding fonts properly.
Bullrushsoft's SWF to EXE Converter almost did the job, but wouldn't open the PDF at all when the link was clicked. I emailed them with my problem and they produced a new build that opens the PDF in Acrobat the next day!
The program also lets you embed XML, JPGs and any other source files into one very compact .exe (still needs Flash Player installed on host PC), control the title bar, frame and custom icon, insert metadata, set number of uses and more - all for less than $50!
harleytruby
August 26th, 2010, 05:44 AM
There is a saying write this code in flash: on(release){getURL("mypdf.pdf", "_blank");} . If that didn't work, You can simply try this http://www.pdf-to-flash-magazine.com,
Both free online conversion and offline software download are offered, not to mention the wonderful page-flip effect they made.
MarcosCoon
September 28th, 2010, 04:20 AM
You should be able to use getURL("pdflocationhere.pdf"); - but I believe thats totally dependent on how the users computer is set up. If they don't have Adobe Reader, it will probably fail, or will attempt to load the pdf within a modern browser that should have the reader plug-in. From my experience, when using getURL() within a projector, it will attempt to open the filetype based on that specific filetype's default opening program which is set in the OS.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.