Export ActionScript 3 from UML (StarUML)

StarUML is a great and free, Windows-based UML tool used for creating UML diagrams. It is possible to export ActionScript 3 / AS3 files from the UML model you have created in StarUML. To do so you need to have an UML to ActionScript 3 / AS3 template added to your StarUML. This UML to Actionscript 3 template is not in the default installation, but have to be added.

This UML to Actionscript 3 is based on he work of other good people, but I have added a number of features that I was missing.
>> You can get the original UML to Actionscript 3 template for StarUML here

I made a number of changes to the UML to Actionscript template, among others support for javadoc tags, repairded a bug for differents between privat, protected and public.

If you using javadoc for documetation of your actionscript, you might also be interested in Ortelius, which is a tool to create html documentation of your actisocript files.
>> Read more about Ortelius - actionscript documentation tool

How to use the uml to actionscript template
The download for this uml to as3 tmplate, is two files. A template file written in javascript/jscript syntax and a settings file. If you don't want my name to appear as the default author, you can change this by open the settings file in notepad.

To install the UML to Actionscript 3 template drag the contents of the downloaded zip file to the StarUML directory, which i my case have the  location C:\Program Files\StarUML\modules\staruml-generator\templates\.

Restart StarUML, do your uml work and go to the Tools menu and select “StarUML Generator …”. Select AS3.0 and click next, choose a destination for your automaticly created actionscript files and click generate.

Uml & StarUML downloads
Download the updated version af the template
Unzip the file and add it to the '......\StarUML\modules\staruml-generator\templates' folder.

Download StarUML
The application where you create the uml model, and export your ActionScript / AS3 code


Read more about Uml & StarUML
http://www.senocular.com/flash/tutorials/starumltoas3/
(here you can download a more advanced UML to Actionscript 3 template, but tends to crash when a project get a little complicated)

http://en.wikipedia.org/wiki/Unified_Modeling_Language