Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Static Actionscript code analysis possibilities

I want to see class, function and variable/property, dependencies visually, like NDepend, but for ActionScript 2 or AS3 code.

Any programs or ideas?

Use doxygen in some way?

FlexUnit?

like image 271
Robin Rodricks Avatar asked Feb 14 '09 09:02

Robin Rodricks


2 Answers

Update Nov 2018:

It would appear that Structure101 (new download page) no longer has an ActionScript variant.

Original answer, links outdated:

Download Structure101g and select the Actionscript flavor after installing the software.

I've confirmed that it is able to map out class level and even function call dependencies in Flex/AS3 projects, and generate a visual map of the same.

Take a look at the attached screenshot.

(non-SSL link dead: i40.tinypic.com/e8qptu.png)

Hope that helps.

like image 84
Kevin Boyd Avatar answered Oct 04 '22 13:10

Kevin Boyd


Far from a complete solution, but to start you may want to use flex SDK ASDoc to generate the class path structure in a single XML (thanks to the -keep-xml -skip-xsl arguments).

Thereafter you could probably get a nice result if you have a play with graphviz (http://www.graphviz.org/Resources.php).

Automating it all via ANT and you're sorted ; )

like image 27
Theo.T Avatar answered Oct 04 '22 13:10

Theo.T