# getURL prevents 'closewindow' script from initiating

**URL:** <https://forum.kirupa.com/t/geturl-prevents-closewindow-script-from-initiating/210243>\
**Category:** flash\
**Created:** [December 16, 2006, 5:12pm UTC](https://forum.kirupa.com/t/geturl-prevents-closewindow-script-from-initiating/210243 "2006-12-16T17:12:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![missmetz](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@missmetz](https://forum.kirupa.com/u/missmetz)\
**Post date:** [December 16, 2006, 5:12pm UTC](https://forum.kirupa.com/t/geturl-prevents-closewindow-script-from-initiating/210243/1 "2006-12-16T17:12:05Z")

</div>

I have an HTML page launching a new window that holds a SWF. From the SWF online, after I launch a ZIP download prompt window from getURL code, the FLASH EXIT button that is coded with ‘closewindow’ stops working.

The EXIT button (closewindow) works fine after I launch another HTML window or PDF file.

I am using:

on (press) {  
getURL(“pathnamehere/filename.zip”);  
}

and:  
on (release) {  
getURL(javascript:window.close();");  
}

and in the HTML page to launch the new window:  
\<script language=“JavaScript” type=“text/JavaScript”\>  
\<!–  
function MM\_openBrWindow(theURL,winName,features) { [//v2.0](https://v2.0)  
window.open(theURL,winName,features);  
}  
//–\>  
\</script\>

Any takers?

Thanks!  
missmetz
