# For .. in problem

**URL:** <https://forum.kirupa.com/t/for-in-problem/218739>\
**Category:** Uncategorized\
**Created:** [March 10, 2007, 8:09am UTC](https://forum.kirupa.com/t/for-in-problem/218739 "2007-03-10T08:09:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iwiniquit](https://avatars.discourse-cdn.com/v4/letter/i/7993a0/32.png) [@iwiniquit](https://forum.kirupa.com/u/iwiniquit)\
**Post date:** [March 10, 2007, 8:09am UTC](https://forum.kirupa.com/t/for-in-problem/218739/1 "2007-03-10T08:09:38Z")

</div>

i’m having a problem with my xml coming in backwards…not sure why. this is the type of code i’m using…it shows my problem exactly.

```auto
var myArray:Array = ["one", "two", "three"];
for (var i:String in myArray) {
    trace(myArray*);
}

```

the output of this is:

three  
two  
one

which means “i” is outputting as 2, 1, 0.

so when i bring in my xml using for it outputs it backwards…and i have to use a for statement. anybody have any ideas on getting it to read 0, 1, 2?
