# Help - scrollbar on dynamic text from external txt file?

**URL:** <https://forum.kirupa.com/t/help-scrollbar-on-dynamic-text-from-external-txt-file/296648>\
**Category:** flash\
**Created:** [September 17, 2009, 6:44pm UTC](https://forum.kirupa.com/t/help-scrollbar-on-dynamic-text-from-external-txt-file/296648 "2009-09-17T18:44:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![codetalker](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@codetalker](https://forum.kirupa.com/u/codetalker)\
**Post date:** [September 17, 2009, 6:44pm UTC](https://forum.kirupa.com/t/help-scrollbar-on-dynamic-text-from-external-txt-file/296648/1 "2009-09-17T18:44:11Z")

</div>

I have a dynamic text box with text imported from an external .txt file and I’m trying to add a scrollbar using the scrollbar component. The scrollbar works fine if I simply paste the text into the box, but does not work when pulling the HTML formatted text from the .txt file.

Any idea what I am doing wrong or how to fix it? Thanks!

ETA: Here is my script:

myLoadVars = new LoadVars();  
myLoadVars.onLoad = function() {  
ContactText.htmlText = myLoadVars.myHTMLdata;  
}  
myLoadVars.load(“ContactText.txt”);
