# Array

**URL:** https://forum.kirupa.com/t/array/7066
**Category:** Uncategorized
**Created:** [October 23, 2002, 3:50am UTC](https://forum.kirupa.com/t/array/7066 "2002-10-23T03:50:54Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![waffe](https://avatars.discourse-cdn.com/v4/letter/w/c37758/32.png) [@waffe](https://forum.kirupa.com/u/waffe)
#### Post date: [October 23, 2002, 3:50am UTC](https://forum.kirupa.com/t/array/7066/1 "2002-10-23T03:50:54Z")

</div>

How would one go about loading an external array into flash?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 23, 2002, 4:24am UTC](https://forum.kirupa.com/t/array/7066/2 "2002-10-23T04:24:03Z")

</div>

from where? You can create arrays from loaded text files etc… Just wondering where you will be pulling your array from?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 23, 2002, 4:31am UTC](https://forum.kirupa.com/t/array/7066/3 "2002-10-23T04:31:03Z")

</div>

I will be pulling the array from an asp file on a server.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 23, 2002, 11:11am UTC](https://forum.kirupa.com/t/array/7066/4 "2002-10-23T11:11:27Z")

</div>

TO load variables threw Asp file in flash u can use

loadVariables(“data.asp”, \_level0);

but i dont have idea how to get array variable threw asp.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 23, 2002, 10:25pm UTC](https://forum.kirupa.com/t/array/7066/5 "2002-10-23T22:25:01Z")

</div>

have asp output the array as a delimited string then use String.split() to parse the string into an array.

say it was string “arrayString” delimited by “:”:

```auto

loader = new LoadVars();
loader.onLoad = function(){
   _root.importedArray = this.arrayString.split(":");
}
loader.load("gimmeThatString.asp");

```

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 24, 2002, 1:50am UTC](https://forum.kirupa.com/t/array/7066/6 "2002-10-24T01:50:58Z")

</div>

Thanks, works great.

If you have some time take a look at my post called “parse of the array”

Its the next step.
