View Full Version : new window problem....

11-27-2003, 01:40 PM
i have a flash movie and inside is a button...i try to open
new window with some html file on this way:

on (release) {
getURL("javascript:openWindow('blabla.html','newWindow','t oolbar=0,location=0,directries=0,
status=0,menubar=0,scrollbars=0,resizable=0,width= 400,

and, this open new window but it's normal size, empty and on
titlebar and adressbar write javascript:openWindow....

how i can make it thats work?

11-28-2003, 11:42 AM
Welcome any2003,

Have you done a search here on the subject? Most of time that already helps alot ;)

This could help:


11-28-2003, 01:04 PM
thanks for link...help me a lot...


i also have problem with object...and a found on site for
javascript generator that flash movie (.swf) must be embedded
in html that javascript for window popup work without problem
with write object on the page...

but, i build cd pesentation with .exe(projector) and there also write "object" when open new window...

it's anybody know how i fix that problem?

11-28-2003, 04:11 PM
o. that is a toughy. I hope you find a solution. I would to know what it is.

have you tried

on (release) {
getURL("javascript:window.open('blabla.html','newWindow',' toolbar=0,location=0,directries=0,status=0,menubar =0,scrollbars=0,resizable=0,width=400,height=400,l eft=0,top=0')");

11-29-2003, 03:50 AM
i try:

on (release) {
getURL("javascript:window.open('blabla. html','newWindow','toolbar=0,location=0,directries =0,status=0,menubar=0,scrollbars=0,resizable=0,wid th=400,height=400,left=0,top=0')");

and this code open new window blabla.html and another
window with [object] and javascript:window.open('blabla. html','newWindow','toolbar=0,location=0,directries =0,status=0,menubar=0,scrollbars=0,resizable=0,wid th=400,height=400,left=0,top=0') in adress bar...(in .exe, in .swf in .html with .swf)

i try:

on (release) {
getURL ("javascript:NewWindow=window.open('blabla.swf','new Win','width=400,height=300,left=,top=,toolbar=No,l ocation=No,scrollbars=No,status=No,resizable=No,fu llscreen=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);void(0);");

and that works when .swf is embedded in html file...but, i need thats work like .exe

boyz...thanks anyway...

11-29-2003, 08:15 AM
i guess it must be some kind of fscommand ....

12-01-2003, 12:44 PM
maybe...but, how?
somebody know?

06-07-2005, 11:17 AM
try this code, i'm sure this is the better

on (release) {
Movieclip.prototype.openWin1 = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable){
getURL("javascript:var myWin1;if (!myWin1 || myWin1.closed){myWin1=window.open('"+url+"', '"+winName+"', '"+"width="+w+", height="+h+", toolbar="+toolbar+", location="+location+", directories="+directories+", status="+status+", menubar="+menubar+", scrollbars="+scrollbars+", resizable="+resizable+", top='+0+', left='+150+'"+"')} else{myWin1.focus();};void(0);"); };

address = "pop1.htm";
winName = "window1";
width = 400;
height = 300;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 0;
resizable = 0;
openWin1(address,winName,width,height,toolbar,loca tion,directories,status,menubar,scrollbars,resizab le); }