Action Script Problem

Ok ive done evertyhing right so far with making text go to a text box. When i test it with ctrl+enter it works fine… it reads the .txt’s fine. when i upload it they wont load the text to the dynamic box… heres my code:

on (release) {
loadText = new loadVars();
loadText.load(“news.txt”);
loadText.onLoad = function(success) {
if (success) {
// trace(success);
newsBox.html = true;
newsBox.htmlText = this.myNews;
scroller.text = this.mynews;
}
};
}

And

on (release) {
loadText = new loadVars();
loadText.load(“contact.txt”);
loadText.onLoad = function(success) {
if (success) {
// trace(success);
newsBox.html = true;
newsBox.htmlText = this.myNews;
scroller.text = this.mynews;
}
};
}

the coding looks ok, maybe your host doesnt allow loading variables (very unlikely), maybe, i dunno

I would agree with flash4food. Check your server, although unlikely it is possible. You may even have to set the directory so that you are able to read/write to it.

the index.htm and swf files all go in to the www/ directory… should i change the code to www/contact.txt and www/news.txt?

not if the txt-files also are in the www directory.
if they are in the root directory (which holds the www folder) and the flashmovie is in the www directory, the code should be “…/contact.txt” without the quotation marks…

:S;S:S:S still not working…