# Delete Movieclip w/ AS?

**URL:** <https://forum.kirupa.com/t/delete-movieclip-w-as/64576>\
**Category:** flash\
**Created:** [September 17, 2004, 3:30pm UTC](https://forum.kirupa.com/t/delete-movieclip-w-as/64576 "2004-09-17T15:30:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Random\_Hero](https://avatars.discourse-cdn.com/v4/letter/r/2acd7d/32.png) [@Random\_Hero](https://forum.kirupa.com/u/Random_Hero)\
**Post date:** [September 17, 2004, 3:30pm UTC](https://forum.kirupa.com/t/delete-movieclip-w-as/64576/1 "2004-09-17T15:30:22Z")

</div>

Need to delete a movieclip off of the stage. It’s messing with my button focus.

Setting it to invisible isn’t helping.

---

<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:** [September 17, 2004, 3:50pm UTC](https://forum.kirupa.com/t/delete-movieclip-w-as/64576/2 "2004-09-17T15:50:46Z")

</div>

How are you setting it to invisible?

Are you using \_alpha = 0? If so that will not work. \_visible = 0 should work though because it makes it as though the clip doesn’t exist on the stage.

If you must delete it… the clip must exist on a removeable depth so you can use removeMovieClip()… so you will need to do something like…

myClip.swapDepths(10000);  
myClip.removeMovieClip();
