View Full Version : Flash Remoting with ActionScript 2.0

10-22-2004, 08:05 PM
I am trying to communicate from my java application server to Flash MX using Flash remoting. I have sucessfully called a method on the server. That method returns a string which I was able to read back in my AS code.

Now I am trying to pass a custom object as a return value. I am not able to get the object back. When I try to see the result of my ResultEvent, it is undefined.

Someone has been able to pass a custom object using Flash Remoting?


10-23-2004, 10:40 AM
i passed an array using amfphp

i did in php

return $tmp;

And flash saw this as an array.

10-23-2004, 01:41 PM
And in your AS code, you did something like that?

Array myArray = (Array)re.result;

re being the result event.

Cause in my case, that did not work... :confused:

10-23-2004, 02:00 PM

i just used the result

so i used result[0],result[1]...
without any prior tansformation

10-23-2004, 02:23 PM
Strange, the result that i get when passing an arrayList from java is a string of my values delimited by a comma.
The problem might be the gateway servlet used on the java server.
Thanks a lot for your info.