# unloadMovie in AS3?

**URL:** <https://forum.kirupa.com/t/unloadmovie-in-as3/301224>\
**Category:** Uncategorized\
**Created:** [December 5, 2009, 1:39pm UTC](https://forum.kirupa.com/t/unloadmovie-in-as3/301224 "2009-12-05T13:39:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevensunsunsun](https://avatars.discourse-cdn.com/v4/letter/s/a6a055/32.png) [@stevensunsunsun](https://forum.kirupa.com/u/stevensunsunsun)\
**Post date:** [December 5, 2009, 1:39pm UTC](https://forum.kirupa.com/t/unloadmovie-in-as3/301224/1 "2009-12-05T13:39:00Z")

</div>

Hi there -help- I’ve just moved to AS3… and have been using:

unloadMovie("\_parent.holder");

on the last frame of my externally loaded SWFs to unload them from the main stage.

But how do I do this in AS3???

I’m using the code below to load (on button click) a 20second video clip onto the main stage. At the end of the clip I want it to unload automatically, or removeChild??? but I can’t find anything anywhere that shows me how exactly… it’s got to be pretty simple right!?

function newvid(event:MouseEvent) {  
trace(“you clicked me”);  
var loadit = new Loader();  
addChild(loadit);  
loadit.load(new URLRequest(“cover\_movie.swf”));  
}  
cover\_movie.addEventListener(MouseEvent.MOUSE\_DOWN, newvid);
