Groups | Blog | Home
all groups > flash (macromedia) > september 2005 >

flash (macromedia) : ability to open pdf files



Rob48
9/22/2005 10:00:09 PM
:confused;

I am using Flash 5 and need to create an interface for a CD that contains pdf
documents.

I cant seem to make a button that will open a pdf file when you click on it.

Is there a way to do this within action scripting?

so far I am not seeing an easy solution.

Rob
Kaushik Mukherjee
9/23/2005 6:36:46 AM
The following code on your button will do the work

on(release){
getURL("file_name.pdf", "_blank");
_addicted_
9/23/2005 5:13:17 PM
This method will simply open a browser window with the PDF inside. Just like if
you click on a PDF link inside a standard web page.

The developper way is to use a third party application that can open a PDF
inside your projector. 3 options for you :

The first and easiest way is to convert your PDF in a Macromedia FlashPaper
format. Your pdf will be converted as a SWF file and you'll be able to browse
your document as well as a real PDF inside Acrobat... Try it! This is much more
reliable and you can easily import your SWF in your library for further use.

The second method is to use Director as a standalone projector with your SWF
project embed into it. To open a PDF file you will need the IMPRESSARIO XTRA
that can make you open a PDF with an easy command line launched from SWF to
Director via a FSCOMMAND like fscommand("event: open_pdf('myPDFFile')");
myPDFFile is your file itself passed as the argument to the Director custom
function open_pdf(). For more informations about this method, you can go to the
IMPRESSARIO website and Here at macromedia concerning the lingo script.

The last one is by using a standalone 3rd party application like Zinc v2.0
that you can find at www.multidmedia.com. This tool is the most advanced and
powerfull 3rd party for Flash i ever seen. The trick is that you embed your swf
in a projeector made by Zinc. You can now use the functionnalities that Zinc
have by calling them simply with a custom fscommand. That's easy, reliable and
of course, powerfull.

BUT, if you dont want to spend your money and your time to learn about them,
use only the first method. Wich is to convert your PDF into a Macromedia
FlashPaper 2 document.
AddThis Social Bookmark Button