Open a PDF file from Flash


//open in a new window
getURL("http://www.mywebsite.com/mypdf.pdf","_blank");

//open in the same window
getURL("http://www.mywebsite.com/mypdf.pdf","_top");

//open in a frame
getURL("http://www.mywebsite.com/mypdf.pdf","_frameName");

5 Responses to “Open a PDF file from Flash”

  1. Susanna July 19, 2007 at 6:41 am # Reply

    What if the PDFs arent on the internet?

  2. Helmut July 24, 2007 at 9:21 am # Reply

    Do you mean a CD?

  3. WinkWink August 17, 2007 at 1:06 pm # Reply

    I am interested on linking to a PDF on a CD as well.

  4. Jocelyn March 10, 2009 at 10:25 am # Reply

    open pdf from flash cd-rom?? geturl works on pc, but on mac (projector), has to open through web browser (which is fine) but it says it cant find the file… the path is correct in the .fla. whats the deal?? thanks!

  5. eee March 23, 2009 at 9:11 am # Reply

    U can use getURL(“C:/myfolder/myfile.pdf”) and it will work. U can replace the C with F or G depending on the letter of your CD-ROM.

    My own problem:

    my client doesn’t want the pdf file to open in a browswer. Using the getURL opens the pdf file in a browser. Is there no neater way??

Leave a Reply