AsDoc with Eclipse
July 10th, 2008 • ActionScript, Flash
If you don’t like to use Ant for generating your ActionScript docs you can create an External Tools Configuration in Eclipse (or Flex Builder).
overview
step-by-step
1. Open External Tool Dialog

2. Create new configuration for “Run a program”

3. Location
Click “Browse File System” to insert the location of your AsDoc tool. It’s included in the Flex SDK “flex_sdk_3/bin/asdoc” (or “flex_sdk_3/bin/asdoc.exe” for Windows).

4. Working Directory
This is your projects root directory. Click “Browse Workspace” if your project is available in Eclipse (or Flex) or “Browse File System” to locate your project somewhere on your harddrive.

5. Arguments
You have to insert all the needed AsDoc comands here, e.g. ‘ -doc-sources ./src -output ./doc -main-title “Test API” -window-title “Test API” ‘. You can find more about the AsDoc commands in the Flex docs

6. Run
You’re done. Whenever you launch this configuration it generates the docs in the specified folder.
5 Responses (Add Your Comment)
-
-
nextgenapp August 15, 2009at 12:13 am
great description. works great.
-
Hi – My project has references to several movieClips set to export as classes in a swc file. When I try to build documentation using AsDoc I get several errors saying “Type was not found or was not a compile-time constant” or “Call to a possibly undefined method” for all the movieClip instances. The project compiles fine without any errors though.
Any suggestions on how to fix this AsDoc problem?

Description is spot on and worked like a charm!
Thank you