hi, I have got to send sth by ASP in Flash. I wrote some code but this doesnt
work. Do anyone know what wrong?
This is what i am writing
on (press) {
form.loadVariables("email.asp", "POST");
}
If I just click on email.asp without Flash, I will get a email from there. But
if I use the above method to call that page, the email wont be sent. So do
anyone know what wrong?
ahmultHoAngel - 13 Dec 2007 00:12 GMT
http://www.sendspace.com/file/ynyv7c
This is the flash file I have updated.
Hope I can get some feedback
ahmultHoAngel - 18 Dec 2007 00:31 GMT
GenaroRG - 22 Dec 2007 01:32 GMT
If you want to call the asp file from flash you should do it like this
lv= new LoadVars();
lv.onLoad(success){
if(success){
trace("file was called");
}
}
lv.emailAddress="foo@foo.com"
lv.sendAndLoad("email.asp", lv,"POST");
The code above is for calling email.asp, pass a variable called emailAddress
via POST and handling a response from the asp, if you do not wish to receive a
response from the asp just use send() instead of sendAndLoad();