hi,
I have this code here which i use to send info from my flash file to my php file… and back…
types = new LoadVars();
types.exe = "battleresultsupdates";
types.which = "wins";
types.amount = _root.battlewins;
types.sendAndLoad("rpgexe.php", types, "POST");
types.onLoad = function() {
types = new LoadVars();
types.exe = "battleresultsupdates";
types.which = "experience";
types.amount = _root.experience;
types.sendAndLoad("rpgexe.php", types, "POST");
types.onLoad = function() {
if (_root.enemy_item.length>0) {
types.exe = "boughtitemplayer";
types.inserteditem = dropped;
types.item_extras = "";
types.item_type = "";
types.sendAndLoad("rpgexe.php", types, "POST");
types.onLoad = function() {
};
}
types = new LoadVars();
types.exe = "boughtitemplayer";
types.inserteditem = dropped;
types.item_extras = "";
types.item_type = "";
types.sendAndLoad("rpgexe.php", types, "POST");
types.onLoad = function() {
};
resultmess += "<br>You stole their <b>: "+dropped+"</b>";
};
};
types = new LoadVars();
types.exe = "disconnectionfalse";
types.sendAndLoad("rpgexe.php", types, "POST");
types.onLoad = function() {
types = new LoadVars();
types.exe = "ADDmoney";
types.amount = money;
types.sendAndLoad("rpgexe.php", types, "POST");
types.onLoad = function() {
_root.main.battlebox.das._visible = false;
_root.main.battlebox.continuebutton._visible = true;
};
};
So… what it’s doing is… everytime i have one of these…
types = new LoadVars();
types.exe = "stuff";
types.sendAndLoad("rpgexe.php", types, "POST");
types.onLoad = function() {
do next php thing..
};
It sends info to my php file… then… once it gets a reply… it does the next lot… and so on and so on…
Is there a way to just combine it ALL at once and just send it as one huge lot?
lol I hope you guys can see what i’m trying to say here!lol