getURL window with maximize button accessible!

hey guys,

I’ve been trying to get a bit of control over the “getURL” action. I want the window that pops up to be a particular size, centered and have the maximize button accessible (it always seems to be greyed-out).

heres the code I’ve been using:

on (release) {
getURL("javascript:openNewWindow(‘http://www.google.com’,‘thewin’,‘height=600,width=400,maximize=yes,toolbar=no,sc
rollbars=no’)

");
}

This is all on one line. I’ve tried adding things like “maximize=yes” but that isn’t doing squat.

Within the HTML, I’ve got this:

<script language=“JavaScript”>
function openNewWindow(URLtoOpen, windowName, windowFeatures) { newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
</script>

Can somebody please help? I’ve tried a few of the components that are supposed to make this easy but, I haven’t found one that works properly yet.

Thanks very much,

artane

Well just cause you have “maximize=yes” doesnt mean the button will maximize it. How will Flash even know that code is for the button.

I highly doubt that there is a code for making a flash button that maximizes the window. Maybe there is, search google. Why in the hell would you try to make a button for maximize…when browsers already have a max button? Trust me dude, if you’re trying to make whatever your trying to make cooler by adding a max button, it won’t work.

But there is a code for just maximize the window as soon as it opens…I think it’s:

[AS]
<script>
top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//–>
</script>
[/AS]

It’s not actionscript, it’s html, this forums does allow you to post php and actionscript but not html…wierd. Anyways, put that code in the window thats gonna popup. I don’t know if it’ll work or not, I’ll search google if it’s possible to achieve what you’re trying to do.:wink:

Oh, Ok

Thanks Sharif, I really appreciate your help. I’m gonna give this a try. You’re right though, the max button isn’t gonna do squat for my site’s coolness factor. Ha :slight_smile:

artane