# Mx - counter

**URL:** <https://forum.kirupa.com/t/mx-counter/92689>\
**Category:** Uncategorized\
**Created:** [October 20, 2003, 6:41pm UTC](https://forum.kirupa.com/t/mx-counter/92689 "2003-10-20T18:41:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wilma](https://avatars.discourse-cdn.com/v4/letter/w/bbe5ce/32.png) [@wilma](https://forum.kirupa.com/u/wilma)\
**Post date:** [October 20, 2003, 6:41pm UTC](https://forum.kirupa.com/t/mx-counter/92689/1 "2003-10-20T18:41:23Z")

</div>

hi, does anyone know if there is a piece of code that will count from 0 through 9 and then just keep repeating over and over?

if there is would there be a way of controlling the spped of the count - so it could go really fast or quite slow??

i tried  
[AS]onClipEvent (load) {

```
	myValue = 0;

```

}  
onClipEvent (enterFrame) {

```
	if (myValue &lt; 100) {
            myValue++; 
    }

```

} {[/AS]

but alas i think i’m well off the mark

wilma
