Launching browser window from within SWF with java

Opens unneccessary empty java window?

Page 1 of 1

0 Replies - 2058 Views - Last Post: 11 July 2005 - 03:10 PM

#1 elearley  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 25-May 05

Launching browser window from within SWF with java

Posted 11 July 2005 - 03:10 PM

Hello, Thanks in advance for any light you can shed...

I have some code inside of an embedded flash movie that opens a new custom browser window with a coupon in it. I have 2 problems:

1. In certain browsers, including Firefox and IE, the coupon opens in the custom browser window but an additional empty java window opens as well. I do not want the additional empty window to open. Any solution? Here is the code I am using in the flash movie:

on (release) {
getURL ("java script:window.open('./coupon.htm','thewin','height=650,width=470,toolbar=no,scrollbars=no');");
}

2. I have a print button on the coupon. It works, but it doesn't print the embedded image behind the text. The image is placed in a table with a border and then the text in in a div tag on top of the image. I want the image to print as well as the text. Here is the code I am using:

<a href="java script:window.print();">Print</a>


Thank you in advance if you can provide a solution.

Is This A Good Question/Topic? 0
  • +

Page 1 of 1