views:

2381

answers:

4

How do I Configuring DoxyGen to document ActionScript files?

I've included the *.as and *.asi files in doxygen's search pattern, but the classes, functions and variables don't show there.

+6  A: 

Instead of doxygen you should use a documentation generator that specifically supports the language. For ActionScript 2, you have a couple choices:

  1. NaturalDocs (example) (free)
  2. ZenDoc (free)
  3. AS2Doc Pro (example) (commercial)

If you are using ActionScript 3, Adobe includes a free documentation generator along with their open source compiler (the Flex SDK), called "ASDoc". If you are using FlashDevelop, the latest beta has a built in GUI for running ASDoc, so you don't have to dirty your hands with the commandline.

davr
+2  A: 

I've been able to produce SOME documentation with DoxyGen (What can I say - I like its features and capabilities) By doing the following:

Add *.as and *.asi to the list of file types to input.

Select:

OPTIMIZE_OUTPUT_JAVA   = YES
EXTRACT_ALL            = YES
HIDE_UNDOC_MEMBERS     = NO
HIDE_UNDOC_CLASSES     = NO

Another issue in AS3 is the package statement. You need to tell DoxyGen to ignore the package definition. This is easy to do using cond. So you'll change the line:

package myPackage {

into

/// @cond
package myPackage {
/// @endcond

Which will cause Doxygen to ignore the line(s) between cond and endcond. Note that there seems to be no need to do the same for the closing curly bracket at the bottom of your .as file.

Eliram
A: 

Thank you :)

+1  A: 

You can also use Ortelius. Its easier to use than ASDoc since it comes with a simple GUI, and its more forgiven to your code. Its free and opensource, but windows only.

ortelius.marten.dk

Moe