Creating a pdf download button

how do i go about creating a button that will allow people on my site to download a pdf form that i have produced. i’m guessing when i asign actions to the button i need to tell it to download the pdf. is there a step by step guide to doing this somewhere? thanks

You can just use getURL to link to your pdf file:


getURL("http://www.server.com/file.pdf","_blank");

Maybe you can leave the “_blank” out, I’m not sure.

you’ll want _blank so it wont overtake the movie and will open in its own page. If you want to force a download, the easiest thing to do is zip it. Otherwise you would need a server-side script to prevent the browser from opening it directly using the adobe reader plugin

thanks for that.

when u say 'http://www.server.com/file.pdf","_blank"
does the server.com = the server provider name or my website name and does file = the file name of my pdf?

sorry for being such a learner on the subject!

do i then just include my pdf in the folder with all my swf & html files?

Well, server is your domain name, and file is indeed your pdf file. http://www.server.com/file.pdf is just an example url though - you can replace it with yours. For example, mine could be:

http://www.voetsjoeba.com/pdf/randomname.pdf

thank u Voetsjoeba. you’ve made it sound quite simpl. i’ll give it a go. senocular’s suggestion of server-side script has completley lost me. think that’s well beyond my capabilities.