# External Text vs UIScrollbar

**URL:** https://forum.kirupa.com/t/external-text-vs-uiscrollbar/294712
**Category:** flash
**Created:** [August 18, 2009, 9:49pm UTC](https://forum.kirupa.com/t/external-text-vs-uiscrollbar/294712 "2009-08-18T21:49:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Leviant](https://avatars.discourse-cdn.com/v4/letter/l/74df32/32.png) [@Leviant](https://forum.kirupa.com/u/Leviant)
#### Post date: [August 18, 2009, 9:49pm UTC](https://forum.kirupa.com/t/external-text-vs-uiscrollbar/294712/1 "2009-08-18T21:49:13Z")

</div>

Hi!  
I’m in desperate need of some help!  
I am trying to load some external text, from a .txt file, into a dynamic textfield inside of Flash. Because the text will be pretty long, I have decided to use a scrollbar, a UIScrollbar.

So when I decide to test the movie (ctrl+enter) it works like it should.  
But when I publish it (f12), the scrollbar won’t work! The arrows and the slider disappears.

Why? I usually sort these kind of problems out for myself. But this problem, seems to me, totally illogical. Is it a glitch of some sort?

I am using Flash CS3 and Action Script 3.

Help, would be much appreciated!

Here is my code.

```auto
var loader:URLLoader = new URLLoader(new URLRequest("texten2.txt"));
loader.addEventListener(Event.COMPLETE, TextLoad);

function TextLoad(event:Event):void {
    var loadedText:URLLoader = URLLoader(event.target);
    scrollWindow.scrollTxt.htmlText = loadedText.data;
}

```
