Click to See Complete Forum and Search --> : New to Java and Flash integration- help?


Steveo3
12-23-2003, 10:41 PM
Hey all-

I have been using Flash MX for a while, and I just started to integrate java with a "getURL()" in Flash. My problem is this... Using the code
on (release) {
getURL ("javascript:NewWindow=window.open('http://www.steveo6500.netfirms.com/photography/mikes.htm','newWin','width='+screen.availWidth+',height='+screen.availHeight+',left=0,top=0,toolbar= No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No'); NewWindow.focus(); screen_height = window.screen.availHeight; screen_width = window.screen.availWidth; left_point = parseInt(screen_width/2)-(400/2); top_point = parseInt(screen_height/2)-(300/2); setTimeout('NewWindow.moveTo(left_point,top_point)',100); void(0);");
}

...I got it from http://www.flash-db.com/PopUp/. Anywhoo, the code works great as it opens what I need, but on the other hand it opens another window with the java code in the URL textfield.

I am on Mozilla 1.5 on PC. Thanks guys.

-Steve

Steveo3
12-23-2003, 11:26 PM
Nevermind, fixed. Just the way the testing environ in Flash deals with it I suppose. Works fine online.