this code is inside a button’s on(release)
var stuff:LoadVars = new LoadVars();
var resultStuff:LoadVars = new LoadVars();
stuff.name = _global.name;
stuff.sendAndLoad(“http://someWebsite.php stuff”,resultStuff,“POST”);
stuff.onLoad = function(success)
{
trace(resultStuff.something);
}
this never works! moreover, if i put the onLoad function on the top it still doesn’t work! i have to use LoadVars.prototype.onLoad. can someone please explain me why? thanks.
it only traces if i move to another frame, why that?