DreamingWell Logo

Generating ASDocs in Flex Builder 3

Posted by Travis Collins on September 29, 2009

ASDoc's plethora of command line options can be frustrating to contend with. Here's an easy way to generate ASDocs for any project in Flex Builder 3.

  1. Create a new "External Tool"
    1. Click Run -> External Tools -> Open External Tools Dialog
    2. Click the "new" icon to create a new external tool
  2. Assign this tool the name "Generate ASDoc"

  3. Under "Location" use the "Browse the filesystem button" to find the asdoc executable in your Flex SDK.

    • Mac OSX: /Applications/Adobe Flex Builder 3/sdks/3.3.0/bin/asdoc

    • Windows: C:\Program Files\Adobe Flex Builder 3\sdks\3.3.0\bin\asdoc.exe


  4. Under "Working Directory" enter ${project_loc}

  5. Under "Arguments" enter

    -source-path=./src -doc-sources=./src -window-title="${project_name}" -main-title="${project_name}" -external-library-path=./libs

  6. Click "Apply"

  7. Click "Close"
  8. To generate ASDocs for any project in Flex Builder, click on the project in the "Flex Navigator" list, and then click the "External Tools" button (or Run->External Tools->Generate ASDoc).

    The "Console" window will show the warning and error output from asdoc. The generated docs will be placed in a new folder named "asdoc-output" at the root of your project.

    If you receive an error about "variable references ... ${project_loc}", you didn't click on your Flex project before clicking "Generate ASDocs".

 

Post a comment




Remember Me?


(you may use HTML tags for style)

Twitter Status

Travis @wjrothman Please read the comment I just left on your Gizmodo article about "Why a Verizon iPhone May Drop Fewer Calls...". -TravisCollins

Last Seen in

Reston, Virginia

 
Privacy Policy

Copyright DreamingWell.com 1998 - 2011