# 2 buttons (2 movies), 1 movie clip - how do I EMPTY the clip from one to the other?

**URL:** <https://forum.kirupa.com/t/2-buttons-2-movies-1-movie-clip-how-do-i-empty-the-clip-from-one-to-the-other/321734>\
**Category:** flash\
**Created:** [April 28, 2011, 10:00pm UTC](https://forum.kirupa.com/t/2-buttons-2-movies-1-movie-clip-how-do-i-empty-the-clip-from-one-to-the-other/321734 "2011-04-28T22:00:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![O\_Tamandua](https://avatars.discourse-cdn.com/v4/letter/o/ecccb3/32.png) [@O\_Tamandua](https://forum.kirupa.com/u/O_Tamandua)\
**Post date:** [April 28, 2011, 10:00pm UTC](https://forum.kirupa.com/t/2-buttons-2-movies-1-movie-clip-how-do-i-empty-the-clip-from-one-to-the-other/321734/1 "2011-04-28T22:00:56Z")

</div>

(Whoops - ALMOST solved - one last issue below!) Hi all,

I’ve got two buttons, one shared movie clip.

The two buttons each load two different movies. All I want to do is TOTALLY CLEAR OUT whatever movie is loaded from one button whenever I press the other to load its cargo into the movie clip.

This seems like it should be so easy to do, but there’s always a remnant of the first movie left in this. How do I empty the whole thing while still keeping the shared movie clip (which the two buttons/movies share) in place?

> 

visor0.addEventListener(MouseEvent.MOUSE\_DOWN,clicker);  
visor1.addEventListener(MouseEvent.MOUSE\_DOWN,clicker);  
function clicker(event:MouseEvent):void{  
var hoverLoader:Loader = new Loader();  
var hovercap:MovieClip = new MovieClip();  
removeChild(hovercap);  
addChild(hovercap);  
hovercap.addChild(hoverLoader);  
if(event.target.name == “visor0”){  
var [url:URLRequest](http://www.kirupa.com/forum/URLRequest) = new URLRequest(“palette\_visor\_blank.swf”);  
hoverLoader.load(url);  
}  
else if(event.target.name == “visor1”){  
var url2:URLRequest = new URLRequest(“palette\_flatvisor\_blank.swf”);  
hoverLoader.load(url2);  
}  
}  
hovercap.addEventListener(MouseEvent.CLICK, clicker);
