# How to get of rid of an instance of a movie clip?

**URL:** <https://forum.kirupa.com/t/how-to-get-of-rid-of-an-instance-of-a-movie-clip/2733>\
**Category:** flash\
**Created:** [April 26, 2002, 12:19am UTC](https://forum.kirupa.com/t/how-to-get-of-rid-of-an-instance-of-a-movie-clip/2733 "2002-04-26T00:19:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 26, 2002, 12:19am UTC](https://forum.kirupa.com/t/how-to-get-of-rid-of-an-instance-of-a-movie-clip/2733/1 "2002-04-26T00:19:06Z")

</div>

Can someone tell me how to get rid of an instance of a movie clip in the following Scenario. I have tried several methods, e.g., setProperty \_visible to false, and the setProperty \_scale to 0 (below). But none of these methods really get rid of instance; it merely hides them. \r\r\rif (\_root.yellow, hitTest(\_root.wall)) {\r speedx = 0;\r&nbsp &nbsp &nbsp &nbsp speedy = 0;\r&nbsp &nbsp &nbsp &nbsp setProperty("\_root.yellow", \_xscale, 0);\r&nbsp &nbsp &nbsp &nbsp setProperty("\_root.yellow", \_yscale, 0);\r}\r\r\rThanks.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 26, 2002, 12:21am UTC](https://forum.kirupa.com/t/how-to-get-of-rid-of-an-instance-of-a-movie-clip/2733/2 "2002-04-26T00:21:40Z")

</div>

removeMovieClip(\_root.yellow)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 26, 2002, 1:19am UTC](https://forum.kirupa.com/t/how-to-get-of-rid-of-an-instance-of-a-movie-clip/2733/3 "2002-04-26T01:19:17Z")

</div>

but that will only work if you’ve used duplicateMovie, or attachMovie to create it.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 26, 2002, 2:52am UTC](https://forum.kirupa.com/t/how-to-get-of-rid-of-an-instance-of-a-movie-clip/2733/4 "2002-04-26T02:52:10Z")

</div>

oh. how about delete?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 26, 2002, 3:18am UTC](https://forum.kirupa.com/t/how-to-get-of-rid-of-an-instance-of-a-movie-clip/2733/5 "2002-04-26T03:18:46Z")

</div>

So any solution??\r\r\rLyman

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 26, 2002, 4:19am UTC](https://forum.kirupa.com/t/how-to-get-of-rid-of-an-instance-of-a-movie-clip/2733/6 "2002-04-26T04:19:32Z")

</div>

Create a frame where that movieclip does not exist and then have the play head go to that frame, OR use attachMovie(); to attach the movie clip to the main timeline and use the above method to get rid of it. As far as I know those are the only two methods.
