# For in loop?

**URL:** https://forum.kirupa.com/t/for-in-loop/211643
**Category:** Uncategorized
**Created:** [January 3, 2007, 9:26pm UTC](https://forum.kirupa.com/t/for-in-loop/211643 "2007-01-03T21:26:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nburlington](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/nburlington/32/1365_2.png) [@nburlington](https://forum.kirupa.com/u/nburlington)
#### Post date: [January 3, 2007, 9:26pm UTC](https://forum.kirupa.com/t/for-in-loop/211643/1 "2007-01-03T21:26:47Z")

</div>

I want to loop through a movie clip and assign a function to each of the clip’s child movieclips.

when i do a for…in loop and then do a typeof() trace I get “string” and obviously it won’t let me assign lets say ‘onRollOver’ functions to the children.

so how do i do this?
