34

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?

albert
  • 8,285
  • 3
  • 19
  • 32
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607

6 Answers6

18

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.

Jeff Ward
  • 16,563
  • 6
  • 48
  • 57
Kevin Boyd
  • 12,121
  • 28
  • 86
  • 128
  • 1
    **+550** - Thank you for exploring this software and confirming that it can do function level mapping. I suppose Structure101 could do the same for C++ and Java code. Nice. Congrats on winning the bounty! Thanks for helping. – Robin Rodricks Mar 19 '10 at 07:24
8

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 ; )

Theo.T
  • 8,905
  • 3
  • 24
  • 38
4

ItDepends, a Visual browser for class and package dependencies in Flex applications.

It lacks the visualization capabilities of NDepends but its a big step up from trying to make sense of link reports. Its source is there so if one was sufficiently motivated it could be extended with visualizations.

Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
darrinm
  • 9,117
  • 5
  • 34
  • 34
4

I was going to post a link to Big Kahuna Burger's Link Report Visualizer, but I see that darrinm has found a much better tool.

Still, could be of some use

LinkReportAIR

enzuguri
  • 818
  • 5
  • 10
  • This tool does nice visual usage breakdowns (seen WinDirStat?) and allows you to sort columns. Unfortunately, you can't copy/paste any data from it. Still a neat tool. – Orwellophile Mar 26 '15 at 14:15
4

The Flex SDK compilers have a -link-report argument that will give you some good information about the classes compiled into the SWF and their dependencies.

See Examining Linker Dependencies from the Flex 3 documentation for more information.

Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
Josh Tynjala
  • 5,235
  • 3
  • 23
  • 25
1

At runtime you an also get information about individual classes via the describeType method (Part of flash.utils). It returns an XML document that describes the class you give to it.

Branden Hall
  • 4,468
  • 18
  • 19