A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Open PDF in new Window

  1. #1
    Junior Member
    Join Date
    Mar 2005
    Posts
    16

    Open PDF in new Window

    I am trying to get a PDF to open in a window on a button click. I can get it to open in the same window.

    From some reading is the only way to do this is with java or can it be done with action script????

  2. #2
    Junior Member
    Join Date
    Jul 2008
    Posts
    9
    Try using "_blank" as the target, after the page address.

  3. #3
    Bald By Choice jasondefra's Avatar
    Join Date
    Mar 2008
    Location
    Wisconsin, USA
    Posts
    205
    What Dyon said:

    PHP Code:
    myBtn_btn.onRelease = function(){
          
    getURL("http://www.url.com/file.pdf""_blank");


  4. #4
    Senior Member vinayak.kadam's Avatar
    Join Date
    Oct 2006
    Location
    gotoAndPlay("Pune");
    Posts
    831
    Guys "_blank" will open the the PDf in new window where as he wants it to open in the same window.

    PHP Code:
    myBtn_btn.onRelease = function(){
          
    getURL("http://www.url.com/file.pdf""_self");

    also test the movie from IE browser.
    As ever,
    Vinayak Kadam

  5. #5
    Bald By Choice jasondefra's Avatar
    Join Date
    Mar 2008
    Location
    Wisconsin, USA
    Posts
    205
    From what I gathered from his post, he CAN get it to open in the same window

    I can get it to open in the same window.
    so I assumed that when he said

    I am trying to get a PDF to open in a window on a button click
    that he meant he was trying to get the PDF to open in to a new browser/tab.

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