# Help with child's and parent's please?

**URL:** <https://forum.kirupa.com/t/help-with-childs-and-parents-please/317419>\
**Category:** flash\
**Created:** [December 20, 2010, 7:37am UTC](https://forum.kirupa.com/t/help-with-childs-and-parents-please/317419 "2010-12-20T07:37:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![groovdafied](https://avatars.discourse-cdn.com/v4/letter/g/8797f3/32.png) [@groovdafied](https://forum.kirupa.com/u/groovdafied)\
**Post date:** [December 20, 2010, 7:37am UTC](https://forum.kirupa.com/t/help-with-childs-and-parents-please/317419/1 "2010-12-20T07:37:58Z")

</div>

oookay. So I have setup a flash MovieClip with a scrollpane in it, and another MovieClip that run’s a FOR loop to create a list of buttons dynamically.

I have the script pull the dynamic MovieClip and load it as a source to the scrollPane but the scrollbars are not appearing. To make sure that the scrollpane was working, I added an event listener to the scrollpane that when I clicked it it will run scrollPane.invalidate() and the scrollbars will pop on.

So here’s my problem/question: If i’m dynamically adding a listMC to this scrollPaneMC, how do I get listMC to throw the invalidate() to the parent scrollPaneMC?

Here’s another way to look at it:

ROOT add’s a child scrollPaneMC. ScrollPaneMC uses listMC as a source from the library. listMC run’s its FOR loop and dynamically creates a list and appears in the scrollPaneMC, but no scrollbars.

I really hope I’m explaining this properly and I thank you for your time!
