开发者

How to let Flash app communicate with server?

What's an easy and secure way to let my Flash app communicate with my back-end server?

The Flash app, whi开发者_StackOverflow中文版ch is a video player, should retrieve the person's username and send back an ID. How would I do this?

Note: Back-end is written in Javascript.


If you want to connect flash with JS to actionscript use ExternalInterface. If you want to connect to e.g. PHP use NetConnection or UrlLoader


I've used XML-RPC in a Flash client before. I've gotten it to work pretty well too.

I've personally used this Action Script 3 implementation:

http://danielmclaren.com/2007/08/03/xmlrpc-for-actionscript-30-free-library

Of course, the server I was talking with was Java/Tomcat. However, I'm pretty sure there are XML-RPC implementations for JavaScript; a quick search found this:

http://phpxmlrpc.sourceforge.net/jsxmlrpc/

Don't know how much setup/overhead it would be for you server-wise, but I've had success with that protocol.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜