I have tried to figure out a solution but i could just set it up for one item till now. Here is a code which works for one item:
var a:Number = 0;
//var paypal_lv = new LoadVars();
addcart.addEventListener(MouseEvent.CLICK, googo);
var i:Number = 0;
function googo(e:Event):void{
var url:String = "https://www.paypal.com/cgi-bin/webscr";
var request:URLRequest = new URLRequest(url);
var paypal_lv:URLVariables = new URLVariables();
paypal_lv.add = "22" + i;
paypal_lv.cmd = "_cart";
paypal_lv.business = "a@test.com";
paypal_lv.item_name = "mamma" + i;
paypal_lv.amount = "200";
paypal_lv.no_shipping = "2";
paypal_lv.no_note = "1";
paypal_lv.currency_code = "USD";
paypal_lv.bn = "PP-ShopCartBF";
request.data = paypal_lv;
request.method = URLRequestMethod.POST;
navigateToURL(request, "_blank");
}
If i add a timer like - on first second send first item and after 12 seconds execute the same code again with variable āiā incremented then it does show me 2nd item also like mamma12. But this is not a right way to go.
So is there any way to set it up?
Thanks!