# Unloading a .swf within a container mc

**URL:** <https://forum.kirupa.com/t/unloading-a-swf-within-a-container-mc/209085>\
**Category:** Uncategorized\
**Created:** [December 5, 2006, 8:19pm UTC](https://forum.kirupa.com/t/unloading-a-swf-within-a-container-mc/209085 "2006-12-05T20:19:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirupafalcon](https://avatars.discourse-cdn.com/v4/letter/k/c4cdca/32.png) [@kirupafalcon](https://forum.kirupa.com/u/kirupafalcon)\
**Post date:** [December 5, 2006, 8:19pm UTC](https://forum.kirupa.com/t/unloading-a-swf-within-a-container-mc/209085/1 "2006-12-05T20:19:06Z")

</div>

i used the following AS to create a container mc, then load an external .swf into the container. I would like to remove the loaed .swf with a button contained within the loaded .swf??? any suggestions?

but.onPress = function () {  
createEmptyMovieClip(“container”, 1);  
loadMovie(“loaded.swf”, “container”);  
container.\_x = -300 ;  
container.\_y =-50 ;  
}  
\_root.onMouseDown = function () {  
startDrag (“container”,false) ;  
}  
\_root.onMouseUp = function () {  
stopDrag () ;  
}
