# On click do this

**URL:** <https://forum.kirupa.com/t/on-click-do-this/93521>\
**Category:** Uncategorized\
**Created:** [November 1, 2003, 2:53am UTC](https://forum.kirupa.com/t/on-click-do-this/93521 "2003-11-01T02:53:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![macneilslt](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@macneilslt](https://forum.kirupa.com/u/macneilslt)\
**Post date:** [November 1, 2003, 2:53am UTC](https://forum.kirupa.com/t/on-click-do-this/93521/1 "2003-11-01T02:53:57Z")

</div>

i’m making a simple game in which you shoot a target by clicking on it with the mouse, but i want there to be a limited number of shots,

so i have a dynamic text box with a var of bullets, i’m trying to write some AS so that when ever the user clicks anywhere inside of the movie, it subtracts one from the number of bullets left.
