Groups | Blog | Home
all groups > flash actionscript > january 2005 >

flash actionscript : Script Fails To Work After Upload


bdflip
1/30/2005 11:56:11 PM
the script for my submit button does not work at all after i upload
but works fine when i test locally..

Any ideas on what could be causing this??

on (release) {
my_lv = new LoadVars();
my_lv.comments = Comments;
my_lv.Phone = Phone;
my_lv.Country = Country;
my_lv.Zip = Zip;
my_lv.State = State;
my_lv.City = City;
my_lv.Address2 = Address2;
my_lv.Address1 = Address1;
my_lv.Name = Name;
my_lv.Redirect_URL = "http://www.CANOUANISLAND.COM/canouan/test.htm";
my_lv.MailToName = "JG";
my_lv.MailToAddress = "bd_flip@yahoo.com";

my_lv.sendAndLoad("http://regver3.websitecomplete.com/contactformhandler.asp",
my_lv, "POST");
}

Igor Costa
1/31/2005 12:30:17 AM
what specfifly doesn't work?
bdflip
1/31/2005 12:34:59 AM
i dont recieve anything in my email...
when i test locally, within seconds ill recieve the email
from the handler.. but after i upload nothing seems to
happen i never recieve the email... my reset works in both
scenarios...

if you would like to see the contact page
http://www.canouanisland.com/canouan/new%20sight/flash/test1.htm

Igor Costa
1/31/2005 1:27:21 AM
bdflip
1/31/2005 1:29:40 AM
This works locally only

on (release) {
my_lv = new LoadVars();
my_lv.comments = Comments;
my_lv.Phone = Phone;
my_lv.Country = Country;
my_lv.Zip = Zip;
my_lv.State = State;
my_lv.City = City;
my_lv.Address2 = Address2;
my_lv.Address1 = Address1;
my_lv.Name = Name;
my_lv.Redirect_URL = "http://www.CANOUANISLAND.COM/canouan/test.htm";
my_lv.MailToName = "JG";
my_lv.MailToAddress = "bd_flip@yahoo.com";
my_lv.sendAndLoad("http://regver3.websitecomplete.com/contactformhandler.asp",
my_lv, "POST");
}
bdflip
1/31/2005 2:15:45 AM
i do use the flash test movie function...i havent tried the contact.swf with the browser locally yet

how would i go about appending my variables to the URL

NSurveyor
1/31/2005 2:31:08 AM
This is the way to append the variables, however, it might not work (probably
too long):

on (release) {
myURL = "http://regver3.websitecomplete.com/contactformhandler.asp";
myURL+="?comments="+Comments;
myURL+="&Phone="+Phone;
myURL+="&Country="+Country;
myURL+="&Zip="+Zip;
myURL+="&State="+State;
myURL+="&City="+City;
myURL+="&Address1="+Address1;
myURL+=&Address2="+Address2;
myURL+="&Name="+Name;
myURL+="&Redirect_URL =http://www.CANOUANISLAND.COM/canouan/test.htm";
myURL+="&MailToName=JG";
myURL+="&MailToAddress=bd_flip@yahoo.com";
getURL(myURL,"_self","GET");
}
bdflip
1/31/2005 2:50:15 AM
thanks but no luck...

Jon Moyles
1/31/2005 9:47:09 AM
when your testing, do you use the flash test movie function?
because i found i got different results from test movie than the browser plugin when using
LoadVars.
specifically, code that worked in the test movie player failed to work in the browser.
i ended up appending my variables to the URL i was sending to and giving up on LoadVars
entirely.
but other people seem to get loadVars working.
AddThis Social Bookmark Button