# Actionscript - TextField - Array

**URL:** <https://forum.kirupa.com/t/actionscript-textfield-array/224011>\
**Category:** flash\
**Created:** [April 27, 2007, 2:15pm UTC](https://forum.kirupa.com/t/actionscript-textfield-array/224011 "2007-04-27T14:15:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhishek\_c2](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@abhishek\_c2](https://forum.kirupa.com/u/abhishek_c2)\
**Post date:** [April 27, 2007, 2:15pm UTC](https://forum.kirupa.com/t/actionscript-textfield-array/224011/1 "2007-04-27T14:15:29Z")

</div>

Hi,  
I am trying to pull out the contents of an array (“category” in my case) and display it inside a textfield (“testText”). The elements of teh array should appear one after the other inside the textfield. I created a textField inside a movieclip and then was trying to animate the movieclip. But how do I change the contents of the text field? I tried something like the following, but the elements sweeps past so fast that only the last element of the array is visible.

this.onEnterFrame = function(){  
for(var i:Number=0; i\<category.length; i++){  
testMovie.testText.text = category\*;  
}  
};

Any help is appreciable. Thank You.  
Abi.
