# Counter

**URL:** <https://forum.kirupa.com/t/counter/253417>\
**Category:** Uncategorized\
**Created:** [February 29, 2008, 10:35pm UTC](https://forum.kirupa.com/t/counter/253417 "2008-02-29T22:35:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hurtsmyBrain](https://avatars.discourse-cdn.com/v4/letter/h/ba8739/32.png) [@hurtsmyBrain](https://forum.kirupa.com/u/hurtsmyBrain)\
**Post date:** [February 29, 2008, 10:35pm UTC](https://forum.kirupa.com/t/counter/253417/1 "2008-02-29T22:35:06Z")

</div>

I’m trying to build a counter and have it display in a dynamic text box. I want to add 31.67 to the dynamic text box every 12 frames, or every second. I’m using onEnterFrame…  
counter++…with an if statement for the counter…if (counter\>11)…prisonCosts+=31.67…it doesn’t work. The if statement doesn’t seem to respond to the counter…  
tried all day…
