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