all groups > flash (macromedia) > may 2007 >
You're in the

flash (macromedia)

group:

Popup window size problem


Popup window size problem Lyle Christine
5/21/2007 10:40:48 PM
flash (macromedia):
Hi,

For some reason, the popup window link in my Flash website opens up a popup
which doesn't behave to the window size rules I set.

The website is www.caveataudiens.net , click on the 'music' button, and then
on the Jukebox button to see as example.

The Jukebox button has the following actionscript:

on (release) {
//customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = "http://www.caveataudiens.net/music/mp3player.html";
target_winName = "kirupa";
width = 400;
height = 300;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 1;
resizable = 0;
//sends data back to the function
openWinCentre(address, target_winName, width, height, toolbar, location,
directories, status, menubar, scrollbars, resizable);
}



and in my main actionscript layer I have:

stopAllSounds();

forum_btn.onRelease = function() {
getURL("http://www.flaccidsacks.co.uk/phpBB2/", "_blank");

}

music_btn.onRelease = function() {
gotoAndStop("music");
}

links_btn.onRelease = function() {
gotoAndStop("links");
}

about_btn.onRelease = function() {
gotoAndStop("about");
}

news_btn.onRelease = function() {
gotoAndStop("news");

}

Movieclip.prototype.openWinCentre = function (url, winName, w, h, toolbar,
location, directories, status, menubar, scrollbars, resizable) {
getURL ("javascript:var myWin; if(!myWin || myWin.closed){myWin =
window.open('" + url + "','" + winName + "','" + "width=" + w + ",height=" + h
+ ",toolbar=" + toolbar + ",location=" + location + ",directories=" +
directories + ",status=" + status + ",menubar=" + menubar + ",scrollbars=" +
scrollbars + ",resizable=" + resizable + ",top='+((screen.height/2)-(" + h/2 +
"))+',left='+((screen.width/2)-(" + w/2 + "))+'" +
"')}else{myWin.focus();};void(0);");
}

Can some kind soul help me figure out how to adjust the window size?

Many thanks

lyle




Re: Popup window size problem Lyle Christine
5/22/2007 12:00:00 AM
Re: Popup window size problem Lyle Christine
5/22/2007 7:29:26 PM
Any ideas?

When I change the settings for toolbar, status, etc, then the changes take
effect, it seems though only the width and height don't work for some reason.

I would be very grateful for any suggestions

Thanks

Lyle
Re: Popup window size problem dzedward
5/22/2007 7:51:42 PM
Re: Popup window size problem Lyle Christine
5/22/2007 8:02:20 PM
AddThis Social Bookmark Button