# For..in with variables

**URL:** <https://forum.kirupa.com/t/for-in-with-variables/172709>\
**Category:** Uncategorized\
**Created:** [December 17, 2005, 1:18am UTC](https://forum.kirupa.com/t/for-in-with-variables/172709 "2005-12-17T01:18:39Z")\
**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:** [December 17, 2005, 1:18am UTC](https://forum.kirupa.com/t/for-in-with-variables/172709/1 "2005-12-17T01:18:39Z")

</div>

i want to use for…in to find all of the movie clips in a movie. then, i want to find out which of all of the movies returned has the variable a=true on it. then, i want to be able to write code that says:  
what is the x coordinate of each of the movieclips that have a=true on them.

thanks,  
jason
