I’m trying to send some data to a php script, with this code:
URLVariables.articles = new Array();
for (var i:int = 0; i < itsNumber; i++) {
URLVariables.articles* = itsPart*.getLabel();
removeChild(itsPart*);
}
URLVariables.Number = new Date();
UrlRequest.data = URLVariables;
t.obj(URLVariables);
Sender.load(UrlRequest);
The for loop adds everything correctly, I can see that when I trace it (t.obj), but the PHP script only seems to receive the LAST element of my array. If there’s more than 1, all before that last are just lost.
Is this code “legal”? Or am I doing something wrong?