Xmi2As

Xmi2As is an ActionScript 2.0 Code Generator created by Darron Schall. It accepts a model defined in an .XMI (XML Metadata Interchange) and will generate in a specified output directory all of the files defined in the model.

Most popular UML programs should export to XMI. This has been tested with ArgoUML, but should work from others as well. To get an .xmi file out of ArgoUML, use the Tools → Export as XMI... menu option.

Currently only ActionScript 2.0 is supported, but it should be pretty easy to extend this to support your favourite language. You’ll need to extend the CodeGenerator.java file in a similar manner to AS2CodeGenerator.java. The source code should be pretty self explanatory.

The program is written in Java with a SWT UI, but currently the layout appears to be busted on OS X. Not really sure what the problem is there - if anyone is decent with Java and wants to play around with the layout classes to try to get them to draw correctly, please do so.

The SubVersion repository is located here: http://svn1.cvsdude.com/osflash/xmi2as

Original announcement: http://www.darronschall.com/weblog/archives/000174.cfm