Groups | Blog | Home
all groups > flash (macromedia) > june 2004 >

flash (macromedia) : button link to open in new window - how?


cape
6/14/2004 11:20:52 PM
Hi...
I have a button that is linked to a pdf file using the action script: on
release get URL. I need the pdf to open in a new browser window. Does anyone
know how or if I can do that? I know in HTML you can add target="_blank" inside
the <a href> tag, but I'm just not sure how to do that with action script.


c_u_jimmy
6/14/2004 11:24:44 PM
on (release) {
getURL("your_pdf.pdf", "_blank");
}

cape
6/15/2004 4:05:41 PM
willywad
6/15/2004 5:04:52 PM
on (press) {
getURL("javascript:n_name = window.open('link.html','new_name','width=500,height=500'); void(0);", "_blank");
}
cape
6/16/2004 12:00:16 AM
ok. well maybe i'm doing it wrong somehow, but what this does is opens another
browser window that is blank then opens a smaller 3rd window with the
measurements given in the width and height attributes. but is there a way to
only open one second window at the smaller size?
AddThis Social Bookmark Button