Help on as

i saw this code on some old post and my question is what do i need to do to automatically get back to the first item on the arrey… (i have the fla in case you need to see it, just ask)

this.myArray = [“text1”, “text2”, “text3”, “text4”, “text5”];
this.times = 0;
this.myTextField.text = this.myArray[this.times];
this.nextButt.myRoot = this;
this.nextButt.onRelease = function() {
this.myRoot.times++;
this.myRoot.myTextField.text = this.myRoot.myArray[this.myRoot.times];
};

i’m trying to learn as so a very quick explanation of the code (this one and the new one) would be very much apreciated!!!

thanks in advance…
:link: