MX actionscript rookie question

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

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.

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


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;
	}
}