# Closing browser windows from flash

**URL:** <https://forum.kirupa.com/t/closing-browser-windows-from-flash/193296>\
**Category:** flash\
**Created:** [July 12, 2006, 1:54pm UTC](https://forum.kirupa.com/t/closing-browser-windows-from-flash/193296 "2006-07-12T13:54:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![paneum](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@paneum](https://forum.kirupa.com/u/paneum)\
**Post date:** [July 12, 2006, 1:54pm UTC](https://forum.kirupa.com/t/closing-browser-windows-from-flash/193296/1 "2006-07-12T13:54:14Z")

</div>

hello

since i installed the new flash player (8 or 9) i can’t seem to get the movie/browser actions to work. I’m doing a movie which has a “close window” button that doesn’t work anymore…

the actions in the button were

on (release) {  
getURL(“javascript:window.close()”);  
}

and it worked ok in MX2004 but it doesn’t work now on flash 8…

I’ve tried to search info about it but all i got were javascrip (code) directly on the page, not on the flash movie, and some info about using the new command “ExternalInterface” to communicate with the browser. But i didn’t find how to do it…

Can anyone help me?

Thanks in advance.
