开发者

Communication between Flash and Java/C# server based app

For example, Flash records voice and sends it to the server where Java or C# apps can proccess it and return back 开发者_运维知识库some data (or write it to db). How this communication possible, which protocols sould be used and etc.


You just have a server socket in java or C/C++/C# whatever, use the flash Socket class to connect to the open socket on the server and do your transactions through that socket.

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/Socket.html

http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7c60.html#WS5b3ccc516d4fbf351e63e3d118a9b90204-7c63

Sample code here: (Too long to paste in an answer)

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/Socket.html#includeExamplesSummary


Besides the raw socket communication, the general formats for communication with Flash to server are AMF and RTMP

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜