# Mouse click help

**URL:** <https://forum.kirupa.com/t/mouse-click-help/261246>\
**Category:** programming\
**Created:** [May 24, 2008, 10:11pm UTC](https://forum.kirupa.com/t/mouse-click-help/261246 "2008-05-24T22:11:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amymation](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@Amymation](https://forum.kirupa.com/u/Amymation)\
**Post date:** [May 24, 2008, 10:11pm UTC](https://forum.kirupa.com/t/mouse-click-help/261246/1 "2008-05-24T22:11:11Z")

</div>

Hi everyone,  
I’m making a game which involves the player to click thier mouse. I’ve got all the code right but what i want is for the player to keep click not just keep the left mouse button down. 😑

onClipEvent (enterFrame) {  
if (Key.isDown(1)){  
nextFrame();  
}  
}

thats the code.  
The player has to keep clicking not just hold the mouse button down!!  
The player has to click to make the bar go down and when the bar goes all the way down it makes another one etc until the counter variable is at 0 (I have all of that code correct!!)  
I hope someone understands me lol.

---

<div class="post-metadata">

**Author:** ![zuperxtreme](https://avatars.discourse-cdn.com/v4/letter/z/e9a140/32.png) [@zuperxtreme](https://forum.kirupa.com/u/zuperxtreme)\
**Post date:** [May 24, 2008, 11:34pm UTC](https://forum.kirupa.com/t/mouse-click-help/261246/2 "2008-05-24T23:34:51Z")

</div>

On a frame:

function onMouseDown(){  
trace(“Mouse Down”);  
}  
function onMouseUp(){  
trace(“Mouse Up”);  
}
