# Remove movie clip

**URL:** <https://forum.kirupa.com/t/remove-movie-clip/233560>\
**Category:** Uncategorized\
**Created:** [July 24, 2007, 11:59pm UTC](https://forum.kirupa.com/t/remove-movie-clip/233560 "2007-07-24T23:59:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![puthem1st](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@puthem1st](https://forum.kirupa.com/u/puthem1st)\
**Post date:** [July 24, 2007, 11:59pm UTC](https://forum.kirupa.com/t/remove-movie-clip/233560/1 "2007-07-24T23:59:56Z")

</div>

Hi everyone. I have 3 buttons that on press attaches a movie clip. Is there a way to detach the movie clip b/c there are several other buttons for the user to click and this first movie clip will not remove?

this is the code that is on the 1st button  
on (press){  
this.createEmptyMovieClip(“Test\_mc”, this.getNextHighestDepth());  
Test\_mc.attachMovie(“Colors”, “Colors”, emptyMC.getNextHighestDepth(), {\_x:20, \_y:100});

}  
Thanks
