Mx - counter

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 < 100) {
            myValue++; 
    }

} {[/AS]

but alas i think i’m well off the mark

wilma