1

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 to an object on the client.

How can I achieve this?

4

1 に答える 1

0

これらのリンクのいずれかがあなたが望むものであるかどうかはわかりません:

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

しかし、それはあなたを始めるはずです、そしてグーグルはそこからあなたを連れて行くことができます。さまざまなデータ型をC#に送信する例がたくさんあるこのadobeページがあったことを覚えていますが、今はそれを見つけることができないようです。

于 2010-04-30T16:16:23.540 に答える