no problem fishing info out of a database and using it within flash, but i can't get around the great big error message of "getInfoError" when i try to send info back to the asp script. anybody know where i might be going wrong??
here's the as function:
************************************************************
function sendGameInfo() {
sendvars = new LoadVars();
sendvars.onLoad = function(result) {
if (result) {
records = sendvars.records;
trace("records = "+int(records));
} else {
trace("getInfoError");
}
};
totplayers = int(homeplayers)+int(awayplayers);
sendvars.totloop = totplayers;
v1 = eval("sendvars.batpos");
v1 = batpos[0];
v2 = eval("sendvars.batruns");
v2 = batruns[0];
//sendvars.sendAndLoad("senddata.asp", sendvars, "POST");
}
************************************************************
and here's the asp script:
************************************************************
response.write "records=4"
rs.close
totloop = request.form("sendvars.totloop")
batpos = request.form("sendvars.batpos")
batruns = request.form("sendvars.batruns")
************************************************************
if i just opt to receive the "records" variable without attempting to send anything, there's no problem. i've got to use the "eval" function (i suppose) as i eventually want to loop through the arrays.
this is seriously doing my fruit now, so if anyone has a notion, i'd be pleased to hear it,
thanks for reading (and hopefully helping),
ralph
here's the as function:
************************************************************
function sendGameInfo() {
sendvars = new LoadVars();
sendvars.onLoad = function(result) {
if (result) {
records = sendvars.records;
trace("records = "+int(records));
} else {
trace("getInfoError");
}
};
totplayers = int(homeplayers)+int(awayplayers);
sendvars.totloop = totplayers;
v1 = eval("sendvars.batpos");
v1 = batpos[0];
v2 = eval("sendvars.batruns");
v2 = batruns[0];
//sendvars.sendAndLoad("senddata.asp", sendvars, "POST");
}
************************************************************
and here's the asp script:
************************************************************
response.write "records=4"
rs.close
totloop = request.form("sendvars.totloop")
batpos = request.form("sendvars.batpos")
batruns = request.form("sendvars.batruns")
************************************************************
if i just opt to receive the "records" variable without attempting to send anything, there's no problem. i've got to use the "eval" function (i suppose) as i eventually want to loop through the arrays.
this is seriously doing my fruit now, so if anyone has a notion, i'd be pleased to hear it,
thanks for reading (and hopefully helping),
ralph