Python和Flash [英] Python and Flash

查看:763
本文介绍了Python和Flash的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以向我提供有关如何轻松(或其他)的建议

驱动Flash动画(本地存储但在浏览器中显示)与

a Python应用。基本上信息会被流式传输到一个
的Python客户端,这有望更新Flash动画。


这听起来很奇怪,但必须要完成。


谢谢,


Rod

解决方案

< blockquote> rodmc写道:

任何人都可以向我提供有关如何轻松(或其他)驱动Flash动画(本地存储但在浏览器中显示)的建议使用Python应用程序。基本上信息正在流式传输到Python客户端,这有望更新Flash动画。

这听起来很奇怪,但必须要完成。




您可以在两者之间建立HTTP通信。在windows下,

COM也可能是一个选项。


Diez


你还没有说明了Python代码需要驻留的地方。


在服务器上,您可以使用XML-RPC或SOAP。 Flash要么支持它们本地地支持它们,要么为它们提供库。您的Web服务服务器可以用Python编写的
。这可能是最好的方法。


在客户端上,Python可以在Windows上的IE中作为客户端脚本安装

语言。很久以前就有一篇文章浮动了一下。可以在客户端上作为COM服务器部署,也可以在浏览器中编写脚本。但这当然不是一个理想的便携式解决方案。


感谢您的帮助。


涉及两个Python应用程序,一个在远程PC上运行,另一个在用户PC(客户端)上运行。


目前,服务器只通过

即时通讯平台接收和发送消息。根据它通过IM平台收到的信息,它然后更新Flash应用程序。我猜它可以通过多种方式实现
,一种方法是将消息发送到

Flash应用程序以更新显示,或另一种方法来更新

服务器上的可视化然后获取Web浏览器(在客户端上

PC)重新加载它。


谢谢,


rod


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


这篇关于Python和Flash的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆