# Creating Frame counter

**URL:** <https://forum.kirupa.com/t/creating-frame-counter/132510>\
**Category:** Uncategorized\
**Created:** [December 29, 2004, 1:05pm UTC](https://forum.kirupa.com/t/creating-frame-counter/132510 "2004-12-29T13:05:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lw61v](https://avatars.discourse-cdn.com/v4/letter/l/c37758/32.png) [@lw61v](https://forum.kirupa.com/u/lw61v)\
**Post date:** [December 29, 2004, 1:05pm UTC](https://forum.kirupa.com/t/creating-frame-counter/132510/1 "2004-12-29T13:05:16Z")

</div>

Hello, ppl!  
pardon the newbie question, but how can I create a counter using actionscript? the scene is 30 frames long and it’s sopposed to get a new value with every frame. something like counter++; example: 70% should turn 71%, 72%… 100%

I tried it, using the while loop like this in first frame:

while (counter \< 100)  
{  
counter++;  
}

but it only shows 100% all the time…  
any ideas?  
thanks in advance.
