# Scrolling externally loaded dynamic text. AS3/CS4

**URL:** https://forum.kirupa.com/t/scrolling-externally-loaded-dynamic-text-as3-cs4/307640
**Category:** flash
**Created:** [April 7, 2010, 12:24pm UTC](https://forum.kirupa.com/t/scrolling-externally-loaded-dynamic-text-as3-cs4/307640 "2010-04-07T12:24:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![phatmambo](https://avatars.discourse-cdn.com/v4/letter/p/13edae/32.png) [@phatmambo](https://forum.kirupa.com/u/phatmambo)
#### Post date: [April 7, 2010, 12:24pm UTC](https://forum.kirupa.com/t/scrolling-externally-loaded-dynamic-text-as3-cs4/307640/1 "2010-04-07T12:24:16Z")

</div>

I am a complete beginner so bare with me…

I have a dynamic text field within my site that I want to load in text from an external .txt file. I also want to add a scrollbar to this field so that you can have more text than can fit in the textbox at anyone time.

I have found this AS3 code to load the external text (from my ‘vacancies.txt’ file) in to my text box (vacanciesbox\_txt):

```auto
var my_req:URLRequest = new URLRequest("vacancies.txt");
var my_loader:URLLoader = new URLLoader();

my_loader.addEventListener(Event.COMPLETE, loadText);
my_loader.load(my_req);

function loadText(event:Event):void{
vacanciesbox_txt.text = my_loader.data;
}

```

This all works fine and the text is loaded in as I want -

The problem I have is that when I add a UIscrollbar to the dynamic text field from the flash components, it doesn’t display and/or work when published.

Any help would be great…
