# Un attaching movie clips

**URL:** <https://forum.kirupa.com/t/un-attaching-movie-clips/122216>\
**Category:** Uncategorized\
**Created:** [September 11, 2004, 3:10pm UTC](https://forum.kirupa.com/t/un-attaching-movie-clips/122216 "2004-09-11T15:10:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joe\_is\_the\_man](https://avatars.discourse-cdn.com/v4/letter/j/9f8e36/32.png) [@Joe\_is\_the\_man](https://forum.kirupa.com/u/Joe_is_the_man)\
**Post date:** [September 11, 2004, 3:10pm UTC](https://forum.kirupa.com/t/un-attaching-movie-clips/122216/1 "2004-09-11T15:10:18Z")

</div>

Hey everyone. I am making something that when a button is clicked, a movie clip that takes up the whole screen is attached using the attachMovie command. At the end of the movieclip I have a button that I want to clear the movieclip when clicked. What is the command to do this. I’ve tried clear, destroyObject, removeMovieClip, but maybe I’m just doing it wrong. By the way, the movie clip is in the library. Also, how would I refer to this movie clip when using the command? It’s in the library but I want it to destroy the instance on screen. Is it \_parent.name or \_root.name or what? Thanks.
