Skip navigation
wbmalibago
Currently Being Moderated

How can I open pdf in new browser?

Jul 11, 2012 11:36 AM

Tags: #actionscript #actionscript_2 #2.0

Hi, ive been using AS 2.0 here..here's my code in the button

 

on(release){

     getURL("sample.pdf","_blank");

}

 

its supposed to open the pdf file in a new browser (which it really does)..but it opens it with http://sample.pdf/

 

of course,the pdf won't open..how can i solve it? i have done uploading the pdf online and put the link in the code but i would be grateful if i can use that code..

 

thank you

 
Replies
  • Currently Being Moderated
    Jul 11, 2012 11:57 AM   in reply to wbmalibago

    Try using the full URL for the pdf instead of just the file name.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 11, 2012 2:44 PM   in reply to wbmalibago

    You need to be testing on a server using a browser.

     

    To view a pdf in a browser you need a pdf reader such as Adobe Acrobat installed for the browser.  Having that allows you to save the file when you are viewing it.

     

    I don't know of anyone that provides free hosting services, although you might check with your ISP... some will offer you server space for personal use..

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points