# Scroll Pane - setScrollContent()

**URL:** https://forum.kirupa.com/t/scroll-pane-setscrollcontent/153449
**Category:** flash
**Created:** [July 1, 2005, 2:52pm UTC](https://forum.kirupa.com/t/scroll-pane-setscrollcontent/153449 "2005-07-01T14:52:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Gumby19](https://avatars.discourse-cdn.com/v4/letter/g/3da27b/32.png) [@Gumby19](https://forum.kirupa.com/u/Gumby19)
#### Post date: [July 1, 2005, 2:52pm UTC](https://forum.kirupa.com/t/scroll-pane-setscrollcontent/153449/1 "2005-07-01T14:52:10Z")

</div>

Hello All,  
I am using code similar to this to create content for a scroll Pane. It works fine if you view it through html, but it looks like the attached picture if you view it in a .exe file (the content overruns the top and bottom boundaries). Does anyone have any solutions for this? Thanks.

```auto

for (i=0; i<_root.contentXML.childNodes[0].childNodes[0].childNodes[3].childNodes**.childNodes.length; i++) {
 clip = lit.attachMovie("Text Box", "textBox"+i, i);
 clip.desc.autoSize = true;
 clip.desc.htmlText = "<b>"+_root.contentXML.childNodes[0].childNodes[0].childNodes[3].childNodes**.childNodes*.childNodes[0].childNodes[0].nodeValue+"</b>"
 clip._y = space;
 clip.view._y = clip.desc._height+3;
 clip.view.pdfTitle = _root.contentXML.childNodes[0].childNodes[0].childNodes[3].childNodes**.childNodes*.childNodes[0].childNodes[0].nodeValue;
 clip.view.pdfFile = _root.contentXML.childNodes[0].childNodes[0].childNodes[3].childNodes**.childNodes*.childNodes[2].childNodes[0].nodeValue;
 space = clip._y+clip._height+10;
}
litPane.setScrollContent(lit);

```
