用python做flash动画,Python和Flash

Can anyone provide me with advice on how easy (or otherwise) it is to

drive a Flash animation (stored locally but displaed in a browser) with

a Python application. Basically information is getting streamed to a

Python client and this is expected to update the Flash animation.

It sounds odd, but it has to be done.

Thanks,

Rod

解决方案rodmc wrote:

Can anyone provide me with advice on how easy (or otherwise) it is to

drive a Flash animation (stored locally but displaed in a browser) with

a Python application. Basically information is getting streamed to a

Python client and this is expected to update the Flash animation.

It sounds odd, but it has to be done.

You can establish a communication over HTTP between the two. Under windows,

COM might be an option, too.

Diez

You have not stated where the Python code needs to reside.

On the server, you can use XML-RPC or SOAP. Flash either supports them

natively or has libraries for those. Your web service servers can be

written in Python. This is the perhaps the best approach.

On the client, Python can be installed as a client side scripting

language within IE on Windows. There used to be an article floating

around on that quite a while ago. Can be deployed as a COM server on

the client too and scripted within the browser. But this is of course

neither a desirable nor portable solution.

Thanks for the help so far.

There are two Python applications involved, one runs on a remote PC

(server) and another on the users PC (client).

The server at present merely receives and sends out messages via an

instant messaging platform. Based on the information it receives via

the IM platform it then updates the Flash application. I guess it could

do it in a number of ways, one method being to send messages to the

Flash application to update the display, or another to update the

visualisation on the server then get the web browser (on the client

PC) to reload it.

Thanks,

rod

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值