# Removing movieclips problem

**URL:** https://forum.kirupa.com/t/removing-movieclips-problem/208610
**Category:** programming
**Created:** [November 30, 2006, 12:16pm UTC](https://forum.kirupa.com/t/removing-movieclips-problem/208610 "2006-11-30T12:16:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jose3760](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jose3760/32/2887_2.png) [@jose3760](https://forum.kirupa.com/u/jose3760)
#### Post date: [November 30, 2006, 12:16pm UTC](https://forum.kirupa.com/t/removing-movieclips-problem/208610/1 "2006-11-30T12:16:36Z")

</div>

I have my guy who shoots at blocks. I want it so that when the bullets hit the blocks, the bullet dissapears and the block dissapears. right now, im using .\_alpha because i couldnt get the removemovieclip() to work.

here is my code on the block:

onClipEvent(enterFrame){  
if(this.hitTest(\_root.bullet)){  
\_root.b1.\_alpha = 0;  
\_root.score += 1;  
}  
}

so since im using alpha, i can keep shooting the block and get points, which is a bad thing 😛
