A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Opening a PDF in Flash

  1. #1
    Senior Member
    Join Date
    Jul 2001
    Posts
    449

    resolved

    hey guys,
    I have designed a site entirely in flash 5 for a client. Now they have thrown in all these PDF documents that when buttons are clicked they download the pdf's or open them in a new browser window. I tried a get url command with - document.pdf - and then - blank_ - . But then it tries to open a url with "document.pdf" in the addrress of the browser window. how do I target the file. Am I ment to put something infront of the command like with e-mail mailt:shdh@fhf.com.
    thanks again,
    tom


  2. #2
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    Will open Adobe Acrobat in the browser:

    on (release) {
    getURL ("http://www.yourdomain.com/yourpage.pdf",
    "_blank");
    }

    Will download the .pdf file:

    on (release) {
    getURL ("http://www.yourdomain.com/yourpage.zip",
    "_blank");
    }


  3. #3
    Senior Member
    Join Date
    Oct 2000
    Location
    Barcelona
    Posts
    875
    yep, that works fine tomy. I was testing it out as estudio was posting.

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