Hi,

I'm having trouble get LoadVars to detect when the data has been sent back from the server to it.

The demo is:

http://www.inflash.com/quiz/test.html

when the Submit Data button is pressed, this is called:

http://www.inflash.com/quiz/test.php

the php script is:

print "Content-type: application/x-www-urlform-encoded\n\n&";
print "feedback=$test_id&server=done";

and the Flash actionscript is:

function submitData(){
varSender.test_id=123;
r_num=random(100000);
varSender.sendAndLoad("http://www.inflash.com/quiz/test.php?r="+r_num, varReceiver, "GET");
gotoAndPlay(2);
}

varReceiver.onLoad=function(){
gotoAndStop(5);
}

varSender = new LoadVars();
varReciever = new LoadVars();
stop();

It just loops without stopping. Any thoughts?