Ming stuff

(reload) (page class:public)
See also, php stuff (if you're desperate), or Flash stuff, which also covers other methods of SWF generation. AFAICT there are at least 3 free-software tools other than Ming.

Ming is quite old and still active, but the docs seem to be (1) very patchy and incomplete, and (2) out of date in many parts. Much of the documentation is pretty useless, except as vague pointers towards things to investigate for yourself by trial-and-error. Which I have done. (that doesn't unfortunately mean I've written up all my findings yet, sorry)

Some of which has been experiments based on the example code on the php docs, which is really miserably broken. I derived some working scripts from those though, with which I managed to figure some details out. I ought to check the "basic sprite examples" there too, see if I can fix those and learn stuff from them.

I also read a lot of the example code at GazbMing site, although a fair bit of that was quite old too. Not as badly though, and at least it had been tested- the first of the PHPdocs examples purported to be a spinning square, and on checking, was a lurching triangle because a corner had been left out. Lovely. The GazbMing ones have a compiled version of each script shown (except in some cases they differ from the source, and in one case the source is absent), but this means you can't view the source without having the movie shown and potentially crashing the browser when you leave the page. (Unless you're one of those lucky folks whose flash plugin is perfectly reliable)

Classes

(Warning: Several of the subpages linked here aren't yet filled in, had other things to do; however the overview given on this page should get you somewhere anyway)
Ming has several classes, which AFAICT all/mostly mirror those available in SWF. The most important ones are:

These ones are also pretty important!

TODO: Make individual pages for the Ming classes, put the list of methods on them and the links to the php docs pages for each.

tips and tricks


Some of these should be put elsewhere later, but meantime:
To send data to and from the server, the actionscript command
loadVariables is ideal. It can send variables to the server in a GET or PUSH fashion, and the variables it loads back into Flash, can go either into a named sprite "target", or into a concurrently loaded movie "level". The Flash player expects the data loaded from the server to be in URLencoded form data format, which can be produced in PHP via the http_build_query function. Should remember to send the appropriate header (as named in the dictionary page earlier).

The PHPdocs page for SWFAction, claims that ActionScript doesn't support functions with return, addresses have to be all hardcoded. However the Adobe docs claim that since Flash Player 5, a "return" command has existed for use in functions. The question is, are the docs miserably outdated on this as with everything else, or does Ming simply not support this feature?

This page has the source for the sketchpad app, linking directly to avoid having to load the app itself.

Stuff To Do!




Page source

Warning:Only I can edit Mwuki!