# External Interface not working in IE7

**URL:** <https://forum.kirupa.com/t/external-interface-not-working-in-ie7/296559>\
**Category:** flash\
**Created:** [September 16, 2009, 5:37pm UTC](https://forum.kirupa.com/t/external-interface-not-working-in-ie7/296559 "2009-09-16T17:37:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DashMasterful](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@DashMasterful](https://forum.kirupa.com/u/DashMasterful)\
**Post date:** [September 16, 2009, 5:37pm UTC](https://forum.kirupa.com/t/external-interface-not-working-in-ie7/296559/1 "2009-09-16T17:37:20Z")

</div>

I’m having a problem with Flash and Internet Explorer. I’m trying to close out a browser window with

//as code  
ExternalInterface.call(“closeWindow”);

//js code  
function closeWindow(){  
alert(‘hey’);  
window.close();   
}

Of course this works in all other browsers except IE, the error that I am getting is:  
‘null’ is null or not an object

any ideas? thanks
