# For...in loop in as3

**URL:** <https://forum.kirupa.com/t/for-in-loop-in-as3/279449>\
**Category:** Uncategorized\
**Created:** [January 14, 2009, 8:21pm UTC](https://forum.kirupa.com/t/for-in-loop-in-as3/279449 "2009-01-14T20:21:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasonoda](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@jasonoda](https://forum.kirupa.com/u/jasonoda)\
**Post date:** [January 14, 2009, 8:21pm UTC](https://forum.kirupa.com/t/for-in-loop-in-as3/279449/1 "2009-01-14T20:21:51Z")

</div>

I can’t quite get this syntax in as3 to work. In as2 I used to just write

for (all in this){  
if(this[all].findme==true){  
trace(this[all])  
}  
}

I am trying to find movie clips that have the variable findme=true in them in “this” movie clip.

How do I do this in as3?
