# Dynamic content in scrollPane - need help

**URL:** <https://forum.kirupa.com/t/dynamic-content-in-scrollpane-need-help/272061>\
**Category:** Uncategorized\
**Created:** [October 1, 2008, 6:33pm UTC](https://forum.kirupa.com/t/dynamic-content-in-scrollpane-need-help/272061 "2008-10-01T18:33:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wraj](https://avatars.discourse-cdn.com/v4/letter/w/41988e/32.png) [@wraj](https://forum.kirupa.com/u/wraj)\
**Post date:** [October 1, 2008, 6:33pm UTC](https://forum.kirupa.com/t/dynamic-content-in-scrollpane-need-help/272061/1 "2008-10-01T18:33:28Z")

</div>

Here’s the issue. I’m tryign scroll dynamic buttons (movie clip with on release actions) in a scrollPane component. As soon as i drop the scrollPane onto the stage, all the buttons become white rectangles with nothing in it

![](http://www.studioalpha.ca/images/xml_buttons.jpg)

the buttons should be grey and when you click on them they 'll say “CLICK” on the output window. but that doesnt work either.

here’s the source code  
----===============--------

var buttons:MovieClip;  
scrollPane.contentPath = “scrollMovieClip”; //empty movie clip

for(i=0; i\<51; i++)  
{  
scrollPane.content.attachMovie(“button”,“button”+i,scrollPane.content.getNextHighestDepth());  
scrollPane.content[“button”+i].\_y = (i+1) \*20;  
scrollPane.invalidate();

}

-------=============----------  
apreciate any help. thnx alot
