What is the proper way to write the loop that the names of the posted
vars and be dynamically named based on "i" in the loop, as in
myData.color_0 = "white"; myData.color_1 = "blue" etc..... Any ideas?
var myData:LoadVars = new LoadVars();
myData.action = "create";
myData.count = _root.shop_cart.size();
for (i=0; i<_root.shop_cart.size(); i++) {
var myProd:Product = _root.shop_cart.getElement(i);
// myData.color_i = myProd.getColor();
}
delete myProd;
trace(myData);
Thanks!
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders