开发者

AMF through a BinarySocket written in .net

I have a windows service behaving as a Binary Socket sending data to flex applications. Once I try to send strings or int's or any other native data-type, everything is working great.

I even succeeded in sending JSon from the server to the client parsing it on Flex.

I want to send AMF objects to the client.

Meaning, I have a class called User, I want to fill it with data and send it to the client, there I want it to be mapped开发者_JAVA技巧 to an object on the client.

How can I achieve this?


I'm not sure if any of these links is what you want:

http://www.adobe.com/devnet/flex/articles/class_mappings.html

http://www.adobe.com/livedocs/flex/2/langref/flash/net/package.html#registerClassAlias%28%29

http://livedocs.adobe.com/flex/3/langref/flash/utils/IExternalizable.html

but it should get you started, and google can take you from there. I remember there was this adobe page with a ton of examples of sending various data types to C#, but I can't seem to find it right now.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜