# OutPut An Array In Parses

**URL:** <https://forum.kirupa.com/t/output-an-array-in-parses/11775>\
**Category:** flash\
**Created:** [January 22, 2003, 3:18am UTC](https://forum.kirupa.com/t/output-an-array-in-parses/11775 "2003-01-22T03:18:13Z")\
**Posts on this page:** 10\
**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:** [January 22, 2003, 3:18am UTC](https://forum.kirupa.com/t/output-an-array-in-parses/11775/1 "2003-01-22T03:18:13Z")

</div>

I am loading an array into flah with loadVars. I split the array up into many sections. myArray\*[0], myArray_1, myArray_[2] ect…

My questions is how can I output all of one section of the array.  
Like all the myArray\*[0] to a textbox.

So the text box looks like this;

myArray\*[0]myArray\*[1]myArray\*[2]myArray\*[3]

Basicly, I am trying to load an array, and output it in a different order.

:beam:

---

<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:** [January 22, 2003, 3:21am UTC](https://forum.kirupa.com/t/output-an-array-in-parses/11775/2 "2003-01-22T03:21:05Z")

</div>

myArray.join("");

---

<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:** [January 22, 2003, 3:39am UTC](https://forum.kirupa.com/t/output-an-array-in-parses/11775/3 "2003-01-22T03:39:48Z")

</div>

This is what I’m trying to pull off;

myArray = new Array();  
for (i=0; i\<this.NUMITEMS; i++) {

```
          var ID = eval("this.ID"+i);
          var Link = eval("this.Link"+i); 

          myArray* = [ID, Link]
          var DataProvider = {ID:myArray*[0], link:myArray*[1]};
               
                myArray*[0].join("&");
    profileID = myArray*[0]
    trace(myArray*[0])

```

}

Does not work, still outputs and traces the same.

What ya think?

---

<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:** [January 22, 2003, 3:49am UTC](https://forum.kirupa.com/t/output-an-array-in-parses/11775/4 "2003-01-22T03:49:05Z")

</div>

The loop in my last post is not posting correctly.

Just so we know.

---

<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:** [January 22, 2003, 4:16am UTC](https://forum.kirupa.com/t/output-an-array-in-parses/11775/5 "2003-01-22T04:16:12Z")

</div>

join returns the string, it doesnt change your array into one

myString = myArray[0].join("&")  
trace(myString)

---

<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:** [January 22, 2003, 5:16am UTC](https://forum.kirupa.com/t/output-an-array-in-parses/11775/6 "2003-01-22T05:16:00Z")

</div>

Almost got what I need. On your last code you have trace command, “trace(myString)” that trace the array how I would like to see it in a textbox.

When I out put to a text box write now, I only get the last string of the array, instead of all the strings being listed, like the trace command.

😛

---

<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:** [January 22, 2003, 6:34pm UTC](https://forum.kirupa.com/t/output-an-array-in-parses/11775/7 "2003-01-22T18:34:52Z")

</div>

Please take a look, you will need to download both files and put them in the same directory. There are further explanations in the fla.

---

<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:** [January 22, 2003, 6:35pm UTC](https://forum.kirupa.com/t/output-an-array-in-parses/11775/8 "2003-01-22T18:35:45Z")

</div>

This is the array I am loading 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:** [January 22, 2003, 6:58pm UTC](https://forum.kirupa.com/t/output-an-array-in-parses/11775/9 "2003-01-22T18:58:58Z")

</div>

replace

profileID = myIDArrayJ;  
trace(myIDArrayJ);

with

profileID += myIDArrayJ;  
if (i!=this.NUMITEMS-1) profileID +="&";

---

<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:** [January 22, 2003, 7:13pm UTC](https://forum.kirupa.com/t/output-an-array-in-parses/11775/10 "2003-01-22T19:13:54Z")

</div>

Thank You VERY MUCH, I don’t fully know how it works, but it works perfectly.:beam:
