# Help on as

**URL:** <https://forum.kirupa.com/t/help-on-as/39679>\
**Category:** Uncategorized\
**Created:** [January 9, 2004, 8:00pm UTC](https://forum.kirupa.com/t/help-on-as/39679 "2004-01-09T20:00:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![netrix](https://avatars.discourse-cdn.com/v4/letter/n/f0a364/32.png) [@netrix](https://forum.kirupa.com/u/netrix)\
**Post date:** [January 9, 2004, 8:00pm UTC](https://forum.kirupa.com/t/help-on-as/39679/1 "2004-01-09T20:00:43Z")

</div>

## 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…  
🔗
