A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [MX04] how do i create a downlaodable pdf

  1. #1
    Member
    Join Date
    Sep 2006
    Posts
    84

    [MX04] how do i create a downlaodable pdf

    hi i have an image of a map on my flash site..i want to make it so that when u click on it the user downloads a pdf version of the map...does anyone know how to do this?? thanks alot

  2. #2
    not'n' wrong with hat'n' sushi iHATEsushi's Avatar
    Join Date
    May 2006
    Location
    Ontario
    Posts
    132
    All you need to do is create a link to send the user to that file and upload the file/s where all your other web pages are located. A PDF they will be prompt to download it unless thay have the acrobat plugin. If they do it will open up in the browser.

  3. #3
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    For download:

    Code:
    yourButton_btn.onRelease = function():Void {
            getURL("http://www.yourdomain.com/your.zip", _blank);
    };

    To open in the browser:

    Code:
    yourButton_btn.onRelease = function():Void {
            getURL("http://www.yourdomain.com/your.pdf", _blank);
    };

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