unloadMovieblues

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