# Arrays from external text files

**URL:** https://forum.kirupa.com/t/arrays-from-external-text-files/161718
**Category:** flash
**Created:** [September 6, 2005, 2:07pm UTC](https://forum.kirupa.com/t/arrays-from-external-text-files/161718 "2005-09-06T14:07:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![theHollow](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/thehollow/32/106_2.png) [@theHollow](https://forum.kirupa.com/u/theHollow)
#### Post date: [September 6, 2005, 2:07pm UTC](https://forum.kirupa.com/t/arrays-from-external-text-files/161718/1 "2005-09-06T14:07:15Z")

</div>

I’m using LoadVars to load an external file that has one variable containing an array with a few sub arrays. here is the code i have:

```auto
var externalData:LoadVars = new LoadVars();
externalData.onLoad = function() {
	var sectArray:Array = externalData.sectArray;
};
externalData.load("portfolio.txt");

```

But every time i try to get one of the values i get “undefined”. is there another way?

Thanks, Brendan Smith
