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.
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.
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