For..in with variables

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