Dados = new LoadVars();
StrDados = some url;
Dados.load(StrDados);
Dados.onLoad = function(success) {
if (success == true) {
//call function
_root.ProdutoDetailEditar();
} else {
}
};
I have a menu with five buttons, each button calls the script above, its works fine…unless i click for examle in 2 buttons very fast without wait for data after Dados.load(StrDados) i causes to flash to crashs, this happens because i do not wait for the load()
anyboby knows a way to interrupt the Dados.load(StrDados) when its awainting for the data, when i click in other button to call the same script
thanks!!!