
Код:
loadedVars = new LoadVars();
loadedVars.onData = function (src) {
trace("Variables received: " + src);
if (src = = undefined) {
this.onLoad(false);
} else {
this.decode(src);
this.loaded = true;
this.onLoad(true);
}
};
loadedVars.onLoad = function (success) {
trace("Vars load successfully? " + success);
}
loadedVars.load("http://www.thesite.com/cgi-bin/getData.pl");
vuz[0] = loadedVars.a;
acts[0] = loadedVars.b;