# unloadMovieblues

**URL:** <https://forum.kirupa.com/t/unloadmovieblues/106185>\
**Category:** Uncategorized\
**Created:** [April 3, 2004, 1:36am UTC](https://forum.kirupa.com/t/unloadmovieblues/106185 "2004-04-03T01:36:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![carunacait](https://avatars.discourse-cdn.com/v4/letter/c/f4b2a3/32.png) [@carunacait](https://forum.kirupa.com/u/carunacait)\
**Post date:** [April 3, 2004, 1:36am UTC](https://forum.kirupa.com/t/unloadmovieblues/106185/1 "2004-04-03T01:36:48Z")

</div>

I copied and applied to my project the scripting tutorial on “Loading movies into Target:Flash MX” on this site which defines the behavior of the button as a callback function. It worked great, I am thrilled. But…now I would like the swf that was loaded to automatically unload when it has finished playing.  
Where would I place the code? What code is required?  
Thanks so much for any help! I am new at this and it is a bit daunting.  
cait
