# Dynamically loaded text that uses a scrollbar

**URL:** https://forum.kirupa.com/t/dynamically-loaded-text-that-uses-a-scrollbar/187856
**Category:** Uncategorized
**Created:** [May 2, 2006, 7:49pm UTC](https://forum.kirupa.com/t/dynamically-loaded-text-that-uses-a-scrollbar/187856 "2006-05-02T19:49:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lazerbrains](https://avatars.discourse-cdn.com/v4/letter/l/b19c9b/32.png) [@lazerbrains](https://forum.kirupa.com/u/lazerbrains)
#### Post date: [May 2, 2006, 7:49pm UTC](https://forum.kirupa.com/t/dynamically-loaded-text-that-uses-a-scrollbar/187856/1 "2006-05-02T19:49:12Z")

</div>

I have looked all over this site and followed one of the tutorials on this site to try and accomplish this. But nothing is working right. I want to load text from an external file, (either .txt or .htm) into a dynamic text box with a scrollbar. I have created the textbox with the scroll bar, but the text comes into the file, but doesn’t stay inside the text box, and the scrollbar doesn’t work. i don’t know why my code is as follows.

//Start Text Loader  
FAQContent\_txt.multiline = true;  
FAQContent\_txt.wordWrap = true;  
FAQContent\_txt.autoSize = “center”;//or “left”, or “right”, or true  
FAQContent = new LoadVars();  
FAQContent.onLoad = function () {  
FAQContent\_txt.text = this.content;  
};  
FAQContent.load(“FAQ.txt”);

//End Text Loader

The out put looks like this:

:jail:
