…has got to be the most confusing and difficult thing to do in Flash. I’ve made this racing game, gone through all hell to get it working, and I’m nearly completely done with it, nearly. Now, heres the deal, I want to send and load best racing times off to .txt file. It sounds simple don’t it. When the .fla loads, a function goes and grabs variable from the file, When the race is over, the function sends stuff back to the .txt. I simply can’t get it working, I’ve tried so many versions of the code but it still doesn’t work. Heres an example
function loadVariables() {
loader = new LoadVars();
loader.load("times.txt");
loader.onLoad = function() {
besttimes = [loader.besttimes]
//and a whole lot more stuff goes here
};
}
Now this is just one of many examples i tried. I have tried countless soloutions but none work, I’m pretty sure it’s just a silly error, but I’ve been killing myself trying to solve it. I’ll post the link to the game, but I can’t right now. If someone can maybe give me a working example of the send() and load() actions that would be splendid.
Tanks in advance.:thumb: