# (MX)need AS to close external swf

**URL:** <https://forum.kirupa.com/t/mx-need-as-to-close-external-swf/21436>\
**Category:** flash\
**Created:** [May 21, 2003, 4:24pm UTC](https://forum.kirupa.com/t/mx-need-as-to-close-external-swf/21436 "2003-05-21T16:24:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eyeball](https://avatars.discourse-cdn.com/v4/letter/e/5daacb/32.png) [@Eyeball](https://forum.kirupa.com/u/Eyeball)\
**Post date:** [May 21, 2003, 4:24pm UTC](https://forum.kirupa.com/t/mx-need-as-to-close-external-swf/21436/1 "2003-05-21T16:24:42Z")

</div>

I have an external.swf that behaves like a pop up window but have no clue how to turn it off, so my question is what AS i add to a button that would close this window

thx a lot

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 21, 2003, 9:17pm UTC](https://forum.kirupa.com/t/mx-need-as-to-close-external-swf/21436/2 "2003-05-21T21:17:49Z")

</div>

there’s a couple of things you could try…

set its \_visible property to false.  
use MovieClip.unloadMovie.  
or if you attached or duplicated the movieclip you can use MovieClip.removeMovieClip.

😉
