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.
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 build_py error: package directory '/home/anderson/ming/ming/py_ext' does not exist
we have to patch the setup.py
:
#srcdir = "/home/anderson/ming/ming/py_ext"
curdir = srcdir = os.getcwd()
We need to comment out the srcdir
line and define the srcdir...