Scroll Pane - setScrollContent()

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.


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);