I've updated my latest little pet project (a source export for ActionScript 3.0 from UML) with some new features including greater support for Events and Errors. Most importantly, though (I think), is there are also now around 30 different options for the export include preferences concerning indentation style as well as how much source the export should really attempt to create for you.
All of these preferences and much of how the export works (and instructions on installing it) are covered in the new tutorial:
The latest build of the export is beta2. For bugs or other issues, contact me directly.