Ming vs Flash

Flash, oooohhhhh! Saviour of the universe!

No, not the evil warlord and his arch enemy, but the ming library for PHP and other languages.
Take a quick look through the examples. Interesting eh?
Of course, I want to do something that Ming itself might not be able to do: create a static .swf file that can load image files given on the URL command line. I’ve gone searching and I’m grappling with new ideas. It seems I’ll have to write actionscript to load the image (that’s obvious if you think about it, Ming is out of the way when a .swf file is created.)
None of the examples I’ve come across accept parameters. 🙁
I’m going to look at this over the weekend if I find the time.

Some links:

  • Google Search: flash tutorial
  • w3schools
  • Macromedia
  • Flash and Javascriptvery interesting.
  • The bitmaps example on the Ming examples page offers a clue.
    // add a third bitmap of xmms using MX actionscript
    $strAction = ”
    $movie->add(new SWFAction(str_replace(“\r”, “”, $strAction)));

    If I could replace the movie URL with a variable I’d be sorted!

Later.. I should have asked Google first. Here’s how to pass parameters to a Flash file. The variable name gets put into the _root name space automatically.

Author: Donncha

Donncha Ó Caoimh is a software developer at Automattic and WordPress plugin developer. He posts photos at In Photos and can also be found on Google+ and Twitter.

2 thoughts on “Ming vs Flash”

Leave a Reply