# Closing swf from ExternalInterface

**URL:** https://forum.kirupa.com/t/closing-swf-from-externalinterface/269996
**Category:** flash
**Created:** [September 4, 2008, 1:03am UTC](https://forum.kirupa.com/t/closing-swf-from-externalinterface/269996 "2008-09-04T01:03:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jayrich86](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@jayrich86](https://forum.kirupa.com/u/jayrich86)
#### Post date: [September 4, 2008, 1:03am UTC](https://forum.kirupa.com/t/closing-swf-from-externalinterface/269996/1 "2008-09-04T01:03:35Z")

</div>

[http://mav-media.com/clients/GLO/mediaComponent/grLive.html](http://mav-media.com/clients/GLO/mediaComponent/grLive.html)

```auto
http://mav-media.com/clients/GLO/mediaComponent/grLive.html

```

Above is a link to a component I’m working on. I’ve overlayed one swf with another swf which is going to display a sort of advertisement slide. What I’m trying to achieve is that when the adbanner (id=“mediabanner”) reads an xml file and reads “false”, it then calls the ExternalInterface function “hideFlash” and in turn closes the swf so that the swf beneath it can be seen.

Could someone view the page source and let me know what I am doing wrong? The hideFlash function is being called, but its not actually hiding the swf. Any thoughts?

Thank you!
