# Bullet holes with a lifespan

**URL:** <https://forum.kirupa.com/t/bullet-holes-with-a-lifespan/157016>\
**Category:** flash\
**Created:** [July 29, 2005, 12:41pm UTC](https://forum.kirupa.com/t/bullet-holes-with-a-lifespan/157016 "2005-07-29T12:41:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emdiesse](https://avatars.discourse-cdn.com/v4/letter/e/c0e974/32.png) [@Emdiesse](https://forum.kirupa.com/u/Emdiesse)\
**Post date:** [July 29, 2005, 12:41pm UTC](https://forum.kirupa.com/t/bullet-holes-with-a-lifespan/157016/1 "2005-07-29T12:41:12Z")

</div>

I am trying to create a bullet hole effect when you click the mouse down.

I want a bullet hole to appear where you click the mouse and to stay there, and then when you have \> 10 bullet holes on the stage i want to earliest ones to start to fade out.

Here is my code so far:  
[AS]  
onClipEvent (mouseDown) {  
i++;  
this.duplicateMovieClip(“BulletHole”+i, i+1);  
\_root[“BulletHole”+i].\_x = \_root.\_xmouse;  
\_root[“BulletHole”+i].\_y = \_root.\_ymouse;  
}  
[/AS]

However this just duplicates the movie clip and then when you click again it disapears straight away.

What do i need to do to accomplish my aim?

Thanks.  
Emdiesse 🍺
