# Load Array?

**URL:** https://forum.kirupa.com/t/load-array/159609
**Category:** Uncategorized
**Created:** [August 18, 2005, 6:15pm UTC](https://forum.kirupa.com/t/load-array/159609 "2005-08-18T18:15:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ibanez](https://avatars.discourse-cdn.com/v4/letter/i/a4c791/32.png) [@Ibanez](https://forum.kirupa.com/u/Ibanez)
#### Post date: [August 18, 2005, 6:15pm UTC](https://forum.kirupa.com/t/load-array/159609/1 "2005-08-18T18:15:46Z")

</div>

is it possible to load array as a variable.

for example I can setup an array in AS like this:

```auto
arrVar = [apple, orange, bannana];

```

I’ve been trying to something like this:

```auto
loadText = loadVariables("testarr.txt", 0);
loadText.onLoad = runthis();
function runthis() {
	arrVar = showText.text;
}

```

is there a way to do something like this?
