# loadVars to array problem

**URL:** <https://forum.kirupa.com/t/loadvars-to-array-problem/108780>\
**Category:** Uncategorized\
**Created:** [April 28, 2004, 5:33pm UTC](https://forum.kirupa.com/t/loadvars-to-array-problem/108780 "2004-04-28T17:33:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Random\_Hero](https://avatars.discourse-cdn.com/v4/letter/r/2acd7d/32.png) [@Random\_Hero](https://forum.kirupa.com/u/Random_Hero)\
**Post date:** [April 28, 2004, 5:33pm UTC](https://forum.kirupa.com/t/loadvars-to-array-problem/108780/1 "2004-04-28T17:33:55Z")

</div>

I couldn’t quite find what I wanted on the forums, but if you know a link or can answer my problem, I’d appreciate it.

Here’s what I’ve got…

Flash File

```auto
filelister = new LoadVars();
filelister.onLoad = function() {
	this.pArray = pics.split(",");
};
filelister.load("reader.txt");

```

reader.txt  
pics=image1.jpg,image2.jpg,image3.jpg,image4.jpg,image5.jpg

Where am I messing up?
