Hey,
I am trying to use MapQuest's directions forms from my flash website. The code that they provide for you is basic html.
I am trying to send the form from inside a flash movie. The code is very simple:
var my_lv:LoadVars = new LoadVars();
my_lv.go = "1";
my_lv.2a = "555 Giffin Avenue";
my_lv.2c = "Canonsburg";
my_lv.2s= "PA";
my_lv.2z= "15317";
my_lv.2y= "US";
my_lv.1a = "555 Cherry Street";
my_lv.1c = "Pottsville";
my_lv.1s = "PA";
my_lv.1z = "17901";
my_lv.1y= "US";
my_lv.CID = "lfddwid";
_root.my_lv.send("http://www.mapquest.com/directions/main.adp", "_blank", "GET");
This should send with no problem and load up directions on mapquest.com. The problem is that FLASH will not let me specify the parameter names "2a, 2c, 2s, 2z, 2y, 1a, 1c, 1s, 1z, or 1y". I think this is because they parameter names begin with a numeric character!! But mapquest required these paramter names to function!!!!!
I am so mad how something so simple can give trouble. Please provide help if you have a suggestion.
BTW... i tried:
var destinationAddress = "1a";
my_lv._root.destinationAddress = "US";
Big surprise. Flash sucks. Thanks.