views:

5454

answers:

5

How to send array in Httpservice in Adobe Flex3

+2  A: 
PhoneTech
A: 

if it is a simple string array, you can join it with a well know separator char, and on the other site, split the string with the same separator back to an array.

kajyr
+1  A: 

It really depends what is the back end technology you're using. If you're sending it to PHP you could try:

var fields:Array = ["categories", "organisation"];
var params:Object = {};
params.q = "stackoverflow";
params.rows = 0;
params.facet = "true";
params["facet.field[]"] = fields;
service.send(params);

PHP will generate an array for you. AFAIR this works fine in Rails as well.

radekg
A: 

If it is a simple array, you could send it as a comma separated string.

httpService.request = new Object;
httpService.request.csv = array.toString();

Srirangan
A: 

how can we send arraycollection from flex to php

abhishek