Ming Perl HOWTO and Examples
-- 31 Jan 2002, Tod E. Kurt,
- A quick description of getting Ming Perl running
With Ming Perl, one can use Perl to write SWF ("Flash") movies.
The amazingly coolness of this I cannot even begin to express.
Disclaimer: I'm just a user of Perl Ming, not a Ming developer.
News: (last updated: 12 Mar 2003)
Ming is a very well-written C library for generating Flash movies, by Dave Hayden.
Most people think of it as just a PHP libary. It's not. It's much more. Find it at: http://opaque.net/ming/
Ming Perl is a Perl XS wrapper around the Ming C library, by Soheil Seyfaie.
Since I couldn't find any talk about the Perl side of Ming, I decided to put up this page. The main things that seemed to be lacking in the evangalization of Perl Ming was:
Not too different, huh?
As a larger example of this transcoding, ming-pong.pl is a Perl translation of Armel Grignon's nifty Ming-Pong game tutorial seen on http://www.neuralust.com/~mingdocs/. And here is the SWF that is output by the above script. Check out all of Armel's tutorials and Jerry Jasuta's lessons on mingdocs, they're very good.
The only semantic change that had to be made is that in Perl the first argument to 'SWF::Shape->setLine()', the 'width', doesn't seem to use 'SWF::setScale()' like PHP version of the command.
There are some other odd differences between the two, mostly due to Perl<->C data type conversions or dealing with Perl's data struct allocs I think. Doing things like this:
Okay, enough of the feverish rambling.
Page layout unabashedly stolen from 'http://opaque.net/ming/'.
Ming is Copyright (C) 2000-2001 Opaque Industries except where noted otherwise.
Macromedia(r) and Flash(tm) are trademarks or registered trademarks of Macromedia, Inc. in the United States and/or other countries.
Macromedia(r) does not sponsor, affiliate, or endorse this product and/or services. Neither any ancient Chinese dynasties.