# Using for...in

**URL:** <https://forum.kirupa.com/t/using-for-in/247774>\
**Category:** flash\
**Created:** [December 29, 2007, 12:56pm UTC](https://forum.kirupa.com/t/using-for-in/247774 "2007-12-29T12:56:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![enchance](https://avatars.discourse-cdn.com/v4/letter/e/85e7bf/32.png) [@enchance](https://forum.kirupa.com/u/enchance)\
**Post date:** [December 29, 2007, 12:56pm UTC](https://forum.kirupa.com/t/using-for-in/247774/1 "2007-12-29T12:56:03Z")

</div>

Can anyone tell me how for…in works? I know, I know there are dozens of tuts online but for…in always eludes me. Let me have it straight if it’s ok. Here’s what I know, in

```auto
for(i in obj){
    //code
}

```

What I don’t know is how does “i” fit in all this and I heard that it’s always in a string? I don’t get it.
