# Dynamic Scroll Pane content

**URL:** <https://forum.kirupa.com/t/dynamic-scroll-pane-content/32756>\
**Category:** flash\
**Created:** [October 10, 2003, 4:53pm UTC](https://forum.kirupa.com/t/dynamic-scroll-pane-content/32756 "2003-10-10T16:53:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrthad](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@andrthad](https://forum.kirupa.com/u/andrthad)\
**Post date:** [October 10, 2003, 4:53pm UTC](https://forum.kirupa.com/t/dynamic-scroll-pane-content/32756/1 "2003-10-10T16:53:02Z")

</div>

Hi All,

I been working on some code to utilize the scrollpane and fill it with mc defined from an array. For instance if my array has 10 names, I would like to attach a mc 10 times and assign onPress function to each button. Any ideas/sample code/tutes on how to accomplish this. So far I have been able to attach 10 mc to the stage with a for loop.
