473,405 Members | 2,176 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Python and 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

Feb 6 '06 #1
11 3115
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
Feb 6 '06 #2
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.

Feb 6 '06 #3
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

Feb 8 '06 #4
Why not just have the Python on the server send a JSON string to the
Flash ap? Easy easy. Just use LoadVars on the Flash side.

All that SOAP and XML-RPC sounds might be an needless overcomplication.

Sam the Gardener

http://sonomasunshine.com

Feb 28 '06 #5
SamFeltus enlightened us with:
PS. Here is an example...

http://sonomasunshine.com/sonomasunshine/FrontPage.html


The HTML version of that site is crap, by the way. Check out
http://sonomasunshine.com/cgi-bin/ol...name=FrontPage

The HTML is sent as text/plain, and if interpreted as HTML, it's not
compliant with any HTML standard.

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
Feb 28 '06 #8
I aint a professional coder, but a gardener. However, the
Flash->JSON->Python technique works. It is poorly coded, but it is IMO
a very simple way to integrate Flash and Python compared to the methods
normally suggested on the net.

The HTML is just some junk thrown up for people with lower tech
browsers without much thought or consideration.

Feb 28 '06 #9
By the way Sybren, if you don't mind, what kinda computer and browser
were you using, trying to figure out which browsers get redirected to
html and which get the Flash Site. If you have Flash plugin, what
version was it?

Thanks,

Sam the Gardener

Feb 28 '06 #10
SamFeltus wrote:
I aint a professional coder, but a gardener. However, the
Flash->JSON->Python technique works. It is poorly coded, but it is IMO
a very simple way to integrate Flash and Python compared to the methods
normally suggested on the net.

The HTML is just some junk thrown up for people with lower tech
browsers without much thought or consideration.


Some people with high-tech browsers don't use Flash for non-technical
reason. The audit clauses in the license allow Macromedia to audit
your computers for license compliance at any time, so some companies
that feel strongly about their data staying away from prying eyes won't
allow it to be installed. It's illegal to install Flash on some
versions of Windows, let alone more esoteric operating systems. Using
the version bundled with IE may skirt some of these issues, I'm not
sure.

see http://www.macromedia.com/shockwave/...cense/desktop/
especially 2(b) and 3(a).

Feb 28 '06 #11
SamFeltus enlightened us with:
By the way Sybren, if you don't mind, what kinda computer and
browser were you using, trying to figure out which browsers get
redirected to html and which get the Flash Site.
Mozilla Firefox 1.5, on Ubuntu Linux Breezy.
If you have Flash plugin, what version was it?


Shockwave Flash 7.0 r25

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
Feb 28 '06 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Randy | last post by:
Flash Remoting is a way for Flash applications to make "native" method calls in Action Script to a server side program, using the AMF binary format. Flash has commercial versions of a Flash...
5
by: Sean Berry | last post by:
I am going to be doing some programming with a Flash programmer in my company. Most of the online docs about integrating Flash with another language use PHP. I am not a fan of PHP. What I...
13
by: Alexander May | last post by:
Hi, I love Python! I've been using it for a couple of years now and have found it to be a highly productive language. I evangelize it to my developer friends and am probably responsible for...
0
by: Samuel M. Smith | last post by:
I can build python 2.4.2 from source on the embedded linux box when I nfs mount and boot a full debian distribution. The embedded box also has stripped down linux distribution in onboard flash....
6
by: planetthoughtful | last post by:
Hi All, I've written my first piece of practical Python code (included below), and would appreciate some comments. My situation was that I had a directory with a number of subdirectories that...
49
by: SamFeltus | last post by:
I am trying to figure out why so little web development in Python uses Flash as a display technology. It seems most Python applications choose HTML/CSS/JS as the display technology, yet Flash is a...
0
by: John Ling | last post by:
Hello, I have been trying to install an application which requires Python: http://chip.dfci.harvard.edu/~wli/MAT/ My environment is AIX 5.2. Below is the section of the setup that has failed,...
3
by: Putty | last post by:
Is there such a thing as a special version of python that I can run more efficiently from a flash drive? I'll be at college for hours every day with hours of free time for the next few months, but...
1
by: jwahlmann | last post by:
I'm experiencing some strange behavior when starting up python on a Debian-based PowerPC platform. Normally, I operate from this platform with a root file system on an IDE flash drive (/dev/hda1)....
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.