# Auto unload external swf?

**URL:** <https://forum.kirupa.com/t/auto-unload-external-swf/261809>\
**Category:** flash\
**Created:** [May 31, 2008, 2:06am UTC](https://forum.kirupa.com/t/auto-unload-external-swf/261809 "2008-05-31T02:06:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Glaswegian](https://avatars.discourse-cdn.com/v4/letter/g/ea5d25/32.png) [@Glaswegian](https://forum.kirupa.com/u/Glaswegian)\
**Post date:** [May 31, 2008, 2:06am UTC](https://forum.kirupa.com/t/auto-unload-external-swf/261809/1 "2008-05-31T02:06:49Z")

</div>

Hi -

I’m new to ActionScript so would appreciate any help or ideas.

I have a drag and drop puzzle external swf that plays from a main file. When the users are done with the puzzle I want it to automatically unload without them clicking a button. I’m familiar with how to unload a swf by having the user click a button from the main file but can’t figure out how to have the swf unload itself automatically.

Does anyone know how to have an external swf unload itself automatically?

Grateful for any ideas - I’ve been working on this a while…

Thanks -

Karen

---

<div class="post-metadata">

**Author:** ![johnlouis](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/johnlouis/32/568_2.png) [@johnlouis](https://forum.kirupa.com/u/johnlouis)\
**Post date:** [June 1, 2008, 2:30am UTC](https://forum.kirupa.com/t/auto-unload-external-swf/261809/2 "2008-06-01T02:30:27Z")

</div>

let the loaded swf dispatch an event or something that the loader listens for, and unload the swf when it hears it.
