# Im an array n00b

**URL:** <https://forum.kirupa.com/t/im-an-array-n00b/92016>\
**Category:** Uncategorized\
**Created:** [October 12, 2003, 12:19am UTC](https://forum.kirupa.com/t/im-an-array-n00b/92016 "2003-10-12T00:19:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Coppertop](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Coppertop](https://forum.kirupa.com/u/Coppertop)\
**Post date:** [October 12, 2003, 12:19am UTC](https://forum.kirupa.com/t/im-an-array-n00b/92016/1 "2003-10-12T00:19:55Z")

</div>

Ok, I’m trying to get better with my AS skills, and have run into a little problem with arrays. Heres what happens, I load a txt file, flash takes one of the strings from the file, and spilts it into an array. Here is what I have:

```auto
loadcaptions = new LoadVars();
loadcaptions.load("pics/captions.txt");
loadcaptions.onLoad = function(){
	captions = this.info
	captions.split("~");
	trace(captions);
	textbox.text = captions[1];
};

```

the file’s contents look like this:

```auto
info=this is thing 1~this is thing 2~this is thing 3~

```

problem is textbox displays nothing. what am I doing wrong?
