How to add a PDF download document link?

I am wondering, how can i add a link for a PDF download on a flash web page? Any suggestions greatly appreciated.

Thank you.

Just use the getURL function to open your pdf. Usually you just target a blank window and it should work okay. For example:

getURL("http://myURL.com/stuff/somePDF.pdf", "_blank");

You could also use the new FileReference Object in F8:

[AS]
import flash.net.FileReference;
var fr:FileReference = new FileReference();
fr.download(“http://path/to/your.pdf”, “standardName.pdf”);
[/AS]
The helpfile would be pleased to give you more answers.

thanks guys.

I would like the user to be forced to download the .pdf rather than have it open in their browser, due to the .pdf’s size. I am trying to use the FileReference object with a button like so:

on (release) {
[COLOR=#0000ff]import[/COLOR] flash.[COLOR=#000080]net[/COLOR].[COLOR=#000080]FileReference[/COLOR];
[COLOR=#000000]var[/COLOR] fr:FileReference = [COLOR=#000000]new[/COLOR] FileReferenceCOLOR=#000000[/COLOR];
fr.[COLOR=#000080]download[/COLOR][COLOR=#000000]([/COLOR][COLOR=#ff0000]“http://path/to/your.pdf”[/COLOR], [COLOR=#ff0000]“standardName.pdf”[/COLOR][COLOR=#000000])[/COLOR];
}

I’ve added a valid path but when I click the button nothing happens. Am I missing something?