# For loops and "this.n" help

**URL:** https://forum.kirupa.com/t/for-loops-and-this-n-help/45767
**Category:** Uncategorized
**Created:** [March 17, 2004, 10:48pm UTC](https://forum.kirupa.com/t/for-loops-and-this-n-help/45767 "2004-03-17T22:48:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![El\_Phantom](https://avatars.discourse-cdn.com/v4/letter/e/d6d6ee/32.png) [@El\_Phantom](https://forum.kirupa.com/u/El_Phantom)
#### Post date: [March 17, 2004, 10:48pm UTC](https://forum.kirupa.com/t/for-loops-and-this-n-help/45767/1 "2004-03-17T22:48:03Z")

</div>

Hey everybody.

I’m doing some XML parsing with flash and after reading some articles on the net it seems like the proper for loop syntax for going through a &name=value string is

[AS]

for(i = 0; i \< this.n; i++){  
code…  
}

[/AS]

This works fine and everything, but i’m just wondering where ‘this.n’ comes from? I can’t seem to find it in the actionscript dictionary and i’m just wondering the origin of that statement and what alternatives there are. I like to understand everything I put in my code. Please humor me. 😛

Thanks all,

–EP
