# Percentage animation help needed

**URL:** <https://forum.kirupa.com/t/percentage-animation-help-needed/74464>\
**Category:** flash\
**Created:** [December 29, 2004, 1:35pm UTC](https://forum.kirupa.com/t/percentage-animation-help-needed/74464 "2004-12-29T13:35:34Z")\
**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:35pm UTC](https://forum.kirupa.com/t/percentage-animation-help-needed/74464/1 "2004-12-29T13:35:34Z")

</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% (but not as a preloader animation)

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.
