# MX actionscript rookie question

**URL:** <https://forum.kirupa.com/t/mx-actionscript-rookie-question/117822>\
**Category:** Uncategorized\
**Created:** [July 30, 2004, 5:00pm UTC](https://forum.kirupa.com/t/mx-actionscript-rookie-question/117822 "2004-07-30T17:00:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![echweb](https://avatars.discourse-cdn.com/v4/letter/e/97f17d/32.png) [@echweb](https://forum.kirupa.com/u/echweb)\
**Post date:** [July 30, 2004, 5:00pm UTC](https://forum.kirupa.com/t/mx-actionscript-rookie-question/117822/1 "2004-07-30T17:00:36Z")

</div>

I am a beginner with action script…actually a designer (yeah one of those…) Anyway, my latest challenge is to come up with a counter. However it doesnt really pertain to clicks or anything…Just something like an odometer that races away up to 1 billion and then re sets.

I found a nice countdown script on this site:  
[http://www.kirupa.com/developer/mx/countdown.htm](http://www.kirupa.com/developer/mx/countdown.htm)

I like the overall timing etc. However, it is a count down site, not a count up site…And it is connected to real time/date data. I just need the numbers to scroll accurately.

Any ideas? Anything would be appreciated.

---

<div class="post-metadata">

**Author:** ![ViNc3](https://avatars.discourse-cdn.com/v4/letter/v/b487fb/32.png) [@ViNc3](https://forum.kirupa.com/u/ViNc3)\
**Post date:** [July 31, 2004, 2:17am UTC](https://forum.kirupa.com/t/mx-actionscript-rookie-question/117822/2 "2004-07-31T02:17:07Z")

</div>

Put this on your movie clip which has a dynamic text in it with the Var: text

```php

onClipEvent (load) {
	numb = 1000;
	// the amount you want your counter to count to.
	text = 0;
}
onClipEvent (enterFrame) {
	if (text<numb) {
		 text += 1;
	} else if (text>=numb) {
		 text = 0;
	}
}

```
