# Flash text-load works locally, but not on server

**URL:** <https://forum.kirupa.com/t/flash-text-load-works-locally-but-not-on-server/238634>\
**Category:** Uncategorized\
**Created:** [September 13, 2007, 1:18pm UTC](https://forum.kirupa.com/t/flash-text-load-works-locally-but-not-on-server/238634 "2007-09-13T13:18:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjj](https://avatars.discourse-cdn.com/v4/letter/j/839c29/32.png) [@jjj](https://forum.kirupa.com/u/jjj)\
**Post date:** [September 13, 2007, 1:18pm UTC](https://forum.kirupa.com/t/flash-text-load-works-locally-but-not-on-server/238634/1 "2007-09-13T13:18:23Z")

</div>

hi all

why ?  
code

createClassObject(mx.controls.UIScrollBar, “my\_sb”, 320);  
my\_sb.setScrollTarget(my\_txt);  
// Size it to match the text field.  
my\_sb.setSize(16, my\_txt.\_height);

// Move it next to the text field.  
my\_sb.move(my\_txt.\_x + my\_txt.\_width, my\_txt.\_y);

// Load text to display and define onData handler.  
var my\_lv:LoadVars = new LoadVars();

my\_lv.onData = function(src:String) {  
if (src != undefined) {  
//my\_txt.htmlText = src;  
my\_txt.text = src;  
my\_txt.setTextFormat(my\_fmt);  
} else {  
my\_txt.text = “Error loading text. deinost”;  
}  
};  
my\_lv.load(“test.txt”);
