# Flash = newArray

**URL:** <https://forum.kirupa.com/t/flash-newarray/7224>\
**Category:** flash\
**Created:** [October 26, 2002, 3:38am UTC](https://forum.kirupa.com/t/flash-newarray/7224 "2002-10-26T03:38:50Z")\
**Posts on this page:** 2\
**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 26, 2002, 3:38am UTC](https://forum.kirupa.com/t/flash-newarray/7224/1 "2002-10-26T03:38:50Z")

</div>

To make an array in AS you go like

flash = newArray(Flash is cool!",“Flash is my favourite program”,"Flash rules)

and “flash” becomes the name of your array.

I am loading an array from an out side txt. file like this

file = new LoadVars();  
file.load(“[http://file.txt](http://file.txt)”);

What is the name of my array?

I would think it is called “file” but I run

myarraylength = file.length;  
trace(file.length);

and I get undefind in the output window.

---

<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 26, 2002, 9:26am UTC](https://forum.kirupa.com/t/flash-newarray/7224/2 "2002-10-26T09:26:00Z")

</div>

A loadVars object is an object, not an array. You’ll have to parse the data into an array to get one. I believe Supra gave you an example in your last post.

pom :cyclops:
