first off i'm just learning flash mx and i'm trying to make a from that sends some variables to an asp page and then retrieves variables from that asp page using the loadVars.sendAndLoad function. I've already made the asp page and i know nothing is wrong with it so here is the flash code i'm trying to use. this code is in the actions for a pushbutton.
Please. any help will be appreciated.
Code:
on (release) {
sendto=sendto.getValue(); //Get Value of a ComboBox
name=_root.name.text; //Get value of a text field
email=_root.email.text; // ' '
message=_root.email.text; // ' '
x = new loadVars();
x.sendAndLoad("[URL unfurl="true"]http://www.site.com/page.asp",x,"POST");[/URL]
// page.asp should return a variable 'stat' I want to get that value here
_root.name.text=stat;
}