# Help with scrollbar component!

**URL:** <https://forum.kirupa.com/t/help-with-scrollbar-component/250055>\
**Category:** Uncategorized\
**Created:** [January 24, 2008, 11:13pm UTC](https://forum.kirupa.com/t/help-with-scrollbar-component/250055 "2008-01-24T23:13:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![slo53](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@slo53](https://forum.kirupa.com/u/slo53)\
**Post date:** [January 24, 2008, 11:13pm UTC](https://forum.kirupa.com/t/help-with-scrollbar-component/250055/1 "2008-01-24T23:13:24Z")

</div>

I’ve created a dynamic text box and attached the UI Component scrollbar. The text is loaded through an external document. When I preview the page, the scrollbar works fine…but once I upload the document online, the scroll bar becomes disabled. I think it doesn’t read the xml text. Can you not use the scrollbar component w/ external text?? Please help, I can’t find the answer to this anywhere!!!

Below is the code I used:

var loader:URLLoader;  
loader = new URLLoader();

//ADD EVENT LISTENER, THIS LISTENS FOR WHEN XML IS LOADED  
loader.addEventListener(Event.COMPLETE, xmlLoaded);  
//DEFINES XML FILE THAT IS LOADED  
var request:URLRequest = new URLRequest(“content.txt”);  
loader.load(request);

//FUNCTON CALLED ONE XML IS LOADED  
function xmlLoaded(event:Event):void {  
//DEFINE MY XML VARIABLE  
var myXML:XML = new XML(loader.data);  
trace(myXML);  
TestTf.text = myXML;

}
