# External Text Loading Local but not on Web? Help!

**URL:** https://forum.kirupa.com/t/external-text-loading-local-but-not-on-web-help/166851
**Category:** flash
**Created:** [October 23, 2005, 9:09am UTC](https://forum.kirupa.com/t/external-text-loading-local-but-not-on-web-help/166851 "2005-10-23T09:09:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Casenote](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@Casenote](https://forum.kirupa.com/u/Casenote)
#### Post date: [October 23, 2005, 9:09am UTC](https://forum.kirupa.com/t/external-text-loading-local-but-not-on-web-help/166851/1 "2005-10-23T09:09:17Z")

</div>

Ok I have a text box named “output”

When I load my swf locally it works when i get it on the web the external text doesn’t load. In fact it doesn’t even give me my “Error loading CSS file!” ??

Anyone know why?

```auto
var format = new TextField.StyleSheet();
var path = "../css/news.css";
format.load(path);
format.onLoad = function(loaded) {
if (loaded) {
output.styleSheet = format;
myLoadVar = new LoadVars();
myLoadVar.load("../data/newsData.txt");
myLoadVar.onLoad = function(success) {
if (success == true) {
        output.variable = "content";
        output.htmlText = myLoadVar.content;
}
};
} else {
output.text = "Error loading CSS file!";
}
};

```

Thanks,  
Case
