I’m trying to figure out if Mtasc and Ming can work together, and if it makes sense to get them to work together. Can’t seem to figure out mtasc yet. I think you need a function called main.

Mtasc has been replaced by haxe? First impression is that it tries too hard. :-( Attempting to be too many things.

Ming already has a decent actionscript compiler, with subtle syntax variances. However, one of the reasons why I’m interested in mtasc is to improve the quality and organization of my actionscript code.

OK I’m definitely doing something wrong. My file size is not commensurate with the data I’m generating, so I’ve got to look at this logically.

I’m starting to get it now…

mtasc -out teste0_out.swf -swf bah.swf -main test.as

and even better:

mtasc -out teste0_out.swf -swf bah.swf -version 8 -main test.as

I used to use Ming for combining and rapidly duplicating movie clips during compile. However, to support a wider set of functionality, I’m now using bitmaps, and the amazing power of the Flash bitmap API is increasing the benefit of using Actionscript to build swfs. That being the case, I really need my actionscript to be tight and efficient.

Here’s what I’m thinking: * Build swf and actionscript seperately and dynamically using PHP* Compile actionscript using mtasc

However, the issue here is the runtime versus buildtime. I love ming because its fast enough to compile at runtime, building and outputting dynamic flash files on the fly. With a php / ming / mtasc / actionscript setup, would it be possible to manage updates without a complex freshness system?

On second thought, I bet if the classes and files were built correctly, they wouldn’t require updating very often. In my case, I’m dealing with data sets and images, with regular updates and common variances to both. I do not want to use actionscript to load external entities, but would rather asseble the necessary components prior to downloading the main swf file. This thread from the mtasc mailing list matches my opinion suprisingly well:

Dynamically linking media files to a swf file at runtime.”erixtekila wrote:>> One feature that would be awesome to have would be the ability to >> include static images (.gif, .jpg, .bmp, whatever) in .swf files, and >> give them linkage id’s so we can attach them at runtime.”

Also have to hand it to gabz AGAIN - this page on swf actionscript objectregisterclass is very helpful.

Annoying variances in syntax betwen compilers

Works in ming set to version 8 (hack):

removeMovieClip(rotate);

does not work:

rotate.removeMovieClip();

How to unset a variable?

delete varname;

Somewhat-related cool links: