# removeMovieClip();

**URL:** <https://forum.kirupa.com/t/removemovieclip/216352>\
**Category:** Uncategorized\
**Created:** [February 15, 2007, 6:39pm UTC](https://forum.kirupa.com/t/removemovieclip/216352 "2007-02-15T18:39:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sutton\_zachary](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@sutton\_zachary](https://forum.kirupa.com/u/sutton_zachary)\
**Post date:** [February 15, 2007, 6:39pm UTC](https://forum.kirupa.com/t/removemovieclip/216352/1 "2007-02-15T18:39:53Z")

</div>

I have the following code placed on a “crystal1” but I cannot get the “crystal” removed from the stage. Can anyone tell me why it is not working. :jail:

onClipEvent (load) {  
if (this.hitTest(\_root.mog)) {  
crystal1.removeMovieClip();  
}  
}  
onClipEvent (enterFrame) {  
if (this.hitTest(\_root.mog)) {  
\_root.total = \_root.total + 1;  
}  
}

///as you can probably tell i am trying to create a game where player"mog" collects coin"crystal" and removes coin from stage and adds one to players score
