# POP up

**URL:** <https://forum.kirupa.com/t/pop-up/91081>\
**Category:** Uncategorized\
**Created:** [July 15, 2003, 12:36pm UTC](https://forum.kirupa.com/t/pop-up/91081 "2003-07-15T12:36:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![imported\_swift7777](https://avatars.discourse-cdn.com/v4/letter/i/b19c9b/32.png) [@imported\_swift7777](https://forum.kirupa.com/u/imported_swift7777)\
**Post date:** [July 15, 2003, 12:36pm UTC](https://forum.kirupa.com/t/pop-up/91081/1 "2003-07-15T12:36:44Z")

</div>

I’m using the kirupa popup script thats inbeded in flash as apposed to on an html page, can anyone help a scripting novice with the code to close this sucker.

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);”);  
}

sooo, when I press release on another button the current popup close’s and a new window replaces it.

thanx 4 any help,

swift.:block:
