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;
}
};
}
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.
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…