# Automaticly Resizable Pop-up Window From Flash Button

**URL:** <https://forum.kirupa.com/t/automaticly-resizable-pop-up-window-from-flash-button/25161>\
**Category:** flash\
**Created:** [July 10, 2003, 12:33am UTC](https://forum.kirupa.com/t/automaticly-resizable-pop-up-window-from-flash-button/25161 "2003-07-10T00:33:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![symbolique\_net](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@symbolique\_net](https://forum.kirupa.com/u/symbolique_net)\
**Post date:** [July 10, 2003, 12:33am UTC](https://forum.kirupa.com/t/automaticly-resizable-pop-up-window-from-flash-button/25161/1 "2003-07-10T00:33:08Z")

</div>

Hi,

I’m trying to get an art gallery sorted. Currently I have a button panel and each click to view the larger file from the thumbnail loads a separate window per thumbnail clicked. I can get the art files to point at the same window no problem and while I can make it resizable I’d ideally like the script to automatically resize the pop-up window to the specifications in the script (currently it just retains the first image thumbnail selected size). I don’t want scrollbars as it defeats the purpose of the varied size of the galleries.

Here’s what I’m using in the actionscript panel on a button;

on (release) {  
getURL(“javascript:openNewWindow(‘dfc-gallery-tde-collage.html’,‘main’,‘height=600,width=408,toolbar=no,scrollbars=no,resizable=yes’)”);  
}

and the following javascript in the head of the html file that the button panel is in;

function openNewWindow(URLtoOpen, windowName, windowFeatures) {  
newWindow=window.open(URLtoOpen, windowName, windowFeatures); }

Can anyone offer some ideas on this?

Thanks,  
Jason Just

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 10, 2003, 9:14am UTC](https://forum.kirupa.com/t/automaticly-resizable-pop-up-window-from-flash-button/25161/2 "2003-07-10T09:14:20Z")

</div>

Please read this thread, the script posted on that thread allows you to state the dimensions for each popup window.

[http://www.kirupaforum.com/forums/showthread.php?s=&postid=242637#post242637](http://www.kirupaforum.com/forums/showthread.php?s=&postid=242637#post242637)
