metaas provides Java applications with a 'Document Object Model' for ActionScript 3 code. Projects primary function is generating code, but it allows existing .as source files to be loaded, and simple modifications to be made.
Note, metaas does not actually generate Flash movies or ActionScript bytecode. You will still need the Flash IDE for Flex for that.
metaas is released under the terms of the LGPL.
Why not just use Velocity?
Velocity and other templating languages are great for general text-generation tasks, but metaas' special knowledge of ActionScript can make the life of the metaprogrammer easier when handling the complicated stuff.
For instance, metaas can,
· auto-indent generated code, so you don't have to worry how the output will look
· enforce syntax rules, so attempting to generate syntactically invalid ActionScript should fail
· allow postprocessing, e.g. an 'organise imports' process runs before code is written to disk
· modify existing code, whereas a basic templating system could only generate new code.
What's New in This Release:
· This release has switched to the Apache License.
· Initial support for ActionScript expressions was added to the DOM.
· The API now provides for 'dynamic' and 'final' class modifiers.
· Support was added for 'break', 'continue', 'default xml namespace', 'try catch finally', and 'throw' statements.
· The false assumption that statement bodies will be code blocks was fixed, along with other bugs.