# MX actionscript rookie question

**URL:** <https://forum.kirupa.com/t/mx-actionscript-rookie-question/59362>\
**Category:** flash\
**Created:** [July 30, 2004, 5:00pm UTC](https://forum.kirupa.com/t/mx-actionscript-rookie-question/59362 "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/59362/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:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 31, 2004, 2:17am UTC](https://forum.kirupa.com/t/mx-actionscript-rookie-question/59362/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;
	}
}

```
