[Red5] Error passing object to red5 from flex
edward.yakop at gmail.com
Fri Nov 2 22:20:43 PDT 2007
> I thought I could pass a ClientGameVO object as a parameter from flex
> using something like
> netConnection.call("myfunction", myClientGameVO);
Yes you can. The big question is whether on the client side you either
or both did this:
You call [flash.net.registerClassAlias]. For example,
registerClassAlias( "com.myCompany.network.ClientGameVO", ClientGameVO );
Or / and
You use the [RemoteClass] meta data.
For example in the declaration of ClientGameVO
public class ClientGameVO
> 1. Is there documentation on how to pass custom objects from flex/as3
> to red5? I couldn't find any. So if someone could point me in the
> right direction that would help a lot.
You can read the official flash documentation for flash remoting.
Essentially all u have to do is do either or both of the above to sent
custom class from actionscript -> java.
> 2. Do I need to define the custom class somewhere on the red5 side?
> Should I cast the client side object to "Object" before I send it?
More information about the Red5