Hello All,
I want to send one variable from my flash to an aspx page, which should
fetch the value and insert it into a database. However, this all should
happen in the background. I have used loadvars in flash and am doing
following:
var my_lv:LoadVars=new LoadVars();
my_lv.test=5;
function sendValue() {
my_lv.test+=1;
my_lv.sendAndLoad('simple.aspx',"",'POST');
}
I have a button in flash, which has:
on (release) {
sendValue();
}
now, is this correct because my programmer says, he is not able to receive
the variable? Please correct me, wher am I wrong?
Regards,
Parag
MotionMaker - 30 Jan 2007 15:57 GMT
You are using the incorrect syntax for
.http://livedocs.macromedia.com/flash/8/main/00002336.html.
var result_lv:LoadVars = new LoadVars();
result_lv.onLoad = function(success:Boolean) {
if (success) {
trace(result_lv.varNameFromServerIfAny);
} else {
trace( "Error connecting to server.");
}
};
var send_lv:LoadVars = new LoadVars();
send_lv..test+=1
send_lv.sendAndLoad("http://www.yourdomain.com/simple.aspx'", result_lv,
"POST");
swasgrafx - 20 May 2008 22:31 GMT
MotionMaker What would be the corresponding ASP? Would like to see the simple.aspx page if possible... Thanks!