O'Reilly logo

Plone 3 Multimedia by Tom Gross

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

pyswftools: Manipulating Flash with Python

With Python it is possible to create Flash applications on the fly. To do so, we need the Ming library (http://www.libming.org/) and the Python implementation of SWFTools: pyswftools. The Ming library is an open source library for writing Flash applications with several languages including C, Perl, Ruby, PHP, and Python.

Installing pyswftools

To install Ming, download the sources and build it with the usual cmmi commands on Linux and Mac OS X:

$ ./configure
$ make
$ make install

This will install the Ming library written in C. To install the Python wrapper, we have to go to the py_ext directory and install the extension:

$ cd py_ext
$ python setup.py install

If the install fails with

running build running ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required