[Flex 4] 利用 Flash Builder 來 generate custom ASDoc


其實熟新的 Flash Builder 4 beta 的人都應該知道的。

有兩種方法generate custom asdoc 的:
1)最基本的,當然是利用asdoc.exe (mac: asdoc) 這個command來generate (今天不是介紹這個)
2)另外是利用 flash builder 4 來generate。(回想flex builder 3的年代,chowky 是利用了flashdevelop 來generate 的,不過flash builder 4 和flex 4.0 的sdk 終於無bug 了,可以簡單的使用)

值得一提的,一定要用flex 4.0 sdk.

1. Go to Run > External Tools > External Tools Configurations
2. Select Program (left sidebar) and click the New button to create a new configuration
3. Give your configuration the name “ASDoc”
4. Set the location to “/Applications/Adobe Flash Builder Beta/sdks/4.0.0/bin/asdoc” (the default on Mac) on Windows the default is “C:\Program Files\Adobe Flash Builder Beta\sdks\4.0.0\bin\asdoc.exe”

5. For Working Directory you can set it to ${project_loc}, this is a variable that always point to the location of your current project (這裏可以利用 browse workspace 來選擇想要generate 的workspace)
6. Finally you set up some arguments, assuming you put your code in the default “src” folder:
-source-path src
-doc-sources src


Source: http://www.peterelst.com/blog/2009/06/08/flash-builder-4-beta-exporting-asdoc-documentation/

Share

, , , ,

  1. #1 by Lila Sullivan on August 22, 2011 - 1:50 pm

    You have done a brilliant job as your post is recommended by Themelis Cuiper’s SocialGarden Business case studies about internet business & e-commerce.

(will not be published)

Anti-Spam Protection by WP-SpamFree