Skip navigation
Currently Being Moderated

Button to open pdf file

Jun 16, 2013 7:54 PM

Tags: #pdf #button #action_script_3 #flash_cs6

In Adoble Flash Professional CS6,

 

I want to make a button that will open a pdf file - in Adobe reader

 

Not sure if this is an issue, but I want the pdf to be opened on any computer, not just mine.. (where the pdf is located..) Is that possible?

 

Any help would be great!

 
Replies
  • kglad
    72,227 posts
    Jul 21, 2002
    Currently Being Moderated
    Jun 16, 2013 9:40 PM   in reply to flashylee

    you can't control whether a user has adobe reader so, no it's not possible.

     

    however, if they have adobe reader and if it's their default pdf viewer you can do that using getURL (as2) or navigateToURL (as3).

     
    |
    Mark as:
  • kglad
    72,227 posts
    Jul 21, 2002
    Currently Being Moderated
    Jun 17, 2013 6:12 AM   in reply to flashylee

    again, in as3, use navigateToURL.  if the pdf and the published html and swf are the same directory use:

     

    navigateToURL(new URLRequest("yourpdf.pdf"));

     
    |
    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