A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: How to download a PDF file from a Flash site

  1. #1
    Junior Member
    Join Date
    May 2006
    Posts
    7

    How to download a PDF file from a Flash site

    Hey guys,

    Have done a quick search for this and didn't find quite what I'm after but apologies if I'm repeating a question already asked on here...

    Basically I created a flash site and uploaded it onto the server provider the client chose using cute ftp. That's all fine but now they want to add a link enabling the viewer to download a PDF straight to their desktop. As I can't upload a PDF file to the Flash library, was wondering if anyone had any tips on creating this function?

    Would rather not have to zip it...

    Any help would be fantastic.

    Many thanks,

    Steve

  2. #2
    Junior Member
    Join Date
    Mar 2009
    Posts
    5
    what if you just uploaded it into your server and create the URL that leads directly to this file i.e. http://www.yourserver.com/directory/file.pdf Does this work?

  3. #3
    Junior Member
    Join Date
    May 2006
    Posts
    7
    Actually, found this code on another site, if you create a button and add this code in, it does it perfectly. Found it very helpful!

    on (release) {
    getURL("yourPDF.pdf");
    }

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center