Here is the code I have so far
var my_lv:LoadVars = new LoadVars();
var send_lv:LoadVars = new LoadVars();
send_lv.onLoad = function(success:Boolean) {
if (success) {
button1.maxQuantity = "1" ;
button1.name = "product";
button1.price = "450";
button1.option1Name = "domain";
button1.option1Value = "included";
trace(this.toString(send_lv));
} else {
trace("Error loading/parsing LoadVars.");
}
};
send_lv.Id=ID_txt.text;
send_lv.load("
http://www.guyswebdesigns.com/PHPfolder/testpage.php");
foreach (key in send_lv)
{
trace(key +":" + send_lv[key]);
}
I get an error on foreach (key in send_lv)
here is the error:
**Error** Scene=Scene 1, layer=Layer 7, frame=5:Line 38: ')' or ',' expected
foreach (key in send_lv)
Total ActionScript Errors: 1 Reported Errors: 1
Next I put this(send_lv.Id=ID_txt.text;) code at the end just above the link
to the php.
I set the instance name to ID_txt for my text but nothing comes thru
This is what I get in my output box
option2%271=included&option1%271=domain&Quantity1=1&price1=450&templete1=product
1&id1=1 %3B%3C%2Fp%3E%0A=&%3Cp%3E=&Id=&onLoad=%5Btype%20Function%5D
What did I miss?
Thank You
Guy