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");

← Back to home

5 thoughts on “Open a PDF file from Flash

  1. 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!

  2. 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??

Comments are closed.