Hi thar Flash forum, I've used Flash CS4 for 3 hours or so total (I'm the noobiest noob ever) and with the help of some guides I figured out how to make my Flash website read text from a text document.
It all works but the text is displayed very wierd and I have no idea of where to even begin troubleshooting. None of the guides I've found covers this problem either so I'm pretty much clueless.
This is what the code to read the text looks like (AS2):
var content:LoadVars = new LoadVars();
lvs.onLoad = function(success:Boolean):Void {
if (success) {
home_txt.text = lvls.varName;
} else {
home_txt.text = "Unable to load external file.";
}
};
content.load("home.txt");
This is what it should look like:
Hi and welcome, this is a test.
But this is what comes out:
Hi%20and%20welcome%2C%20this%20is%20a%20test%2E%0D%0A=
I did search before asking, but I don't even know what to call the problem so that makes searching abit more difficult.
Did I just simply make a noob mistake and miss something annoyingly obvious to everyone else?