all groups > macromedia flash flash remoting > february 2004 >
You're in the

macromedia flash flash remoting

group:

Return an array to Remoting


Return an array to Remoting Luca Evangelisti
2/10/2004 4:19:37 PM
macromedia flash flash remoting:
Hi, i need to return an array to flash remoting from a vb.net web services.
That's my try:

<WebMethod()> Public Function Contents() As arrayList

..

dim test as arraylist

test.add ("1")

test.add ("2")

..

..

return(test)

Flash show only first value, i cannot access to result[i] value, it give me
only "1" when i try trace(result). When i wrote trace(result[0]) result its
undefined so i cannot get value "2".

Many Thanks!

Re: Return an array to Remoting P.R. Newman
2/13/2004 12:12:22 AM
[quoted text, click to view]

Flash Remoting returns a RecordSet object back to Flash - not an array.

You might want to try:

result.getItemAt(i);

--
Paul
-------------------------
Team Macromedia Member for Central
http://www.macromedia.com/go/team/
Extending Knowledge, Daily
http://www.communitymx.com
-------------------------




AddThis Social Bookmark Button