Skip to main content
June 22, 2010
Answered

creating code in AS3 to launch a PDF file?

  • June 22, 2010
  • 1 reply
  • 1311 views

Hi,

I am interested in creating a page on my website where visitors can download a pdf file. I have never done anything like this.

Can anyone recommen a good tutorial or website tat has info regarding the code necessary to make this work in Flash AS3.

Thanks

This topic has been closed for replies.
Correct answer kglad

there's not enough substance for a tutorial.  if your pdf is sample.pdf, use:

var fRef:FileReference=new FileReference();

fRef.download(new URLRequest("sample.pdf"));

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
June 22, 2010

there's not enough substance for a tutorial.  if your pdf is sample.pdf, use:

var fRef:FileReference=new FileReference();

fRef.download(new URLRequest("sample.pdf"));

June 22, 2010

Thanks, just got you post

I figured it out about a half hour later.

kglad
Community Expert
Community Expert
June 22, 2010

you're welcome.