Feb 21 2010

generate asDoc for flash player 10

Category: AS3admin @ 12:07 am

in my other post about asDoc generating I talked about my expiriences in generating asDoc but that string in the .bat file works only for flash player 9 projects! in this artical I will talk about how you ca also generate asDoc successfully for flash player 10 codes also.

first read the last post here to get ready with the whole idea. http://www.myflashlab.com/2010/02/20/how-to-generate-asdoc-from-your-class-files/

the only modification you need to make to the .bat file is:
-external-library-path “C:\Program Files\Adobe\flex_sdk_4.0.0.6898\frameworks\libs\player\10″

so the .bat file would look to something like below:

"C:\Program Files\Adobe\flex_sdk_3.3.0.4852\bin\asdoc.exe" -external-library-path "C:\Program Files\Adobe\flex_sdk_4.0.0.6898\frameworks\libs\player\10" -output "G:\project\classes\bg\doc" -main-title "MyFlashLab AS3 Components language reference" -window-title "MyFlashLab" -footer "www.myFlashLab.com - December 16, 2009" -source-path "G:\project\as" -doc-classes com.doitflash.utils.bg.Bg com.doitflash.utils.bg.BgConst com.doitflash.utils.bg.BgType -exclude-dependencies=true

adding that line to your .bat file means that you have downloaded and installed the new flex sdk from http://opensource.adobe.com/wiki/display/flexsdk/Downloads

Regards,
Hadi

Tags: , , , , , , , , , ,

2 Responses to “generate asDoc for flash player 10”

  1. Adam Duro says:

    I can’t for the life of me get this to work. Here is my command line:

    external-library-path “/sym-links/flex_4.1.0.16076_sdk/frameworks/libs/player/10.0″ -sp /www/sales_integration/as3_library/src/ -dc com.evolve.components.display.BitmapSprite com.evolve.components.poll.PollBase com.evolve.components.poll.PollController com.evolve.components.poll.PollEvent com.evolve.components.poll.PollQuestionVO -output /www/sales_integration/as3_library/docs/evolve_library_docs -exclude-dependencies=true

    It asdocs the classes just fine, but does not asdoc any of the FP10.0 API.

    Any ideas? I’m running this on OS X 10.6.2

    • admin says:

      Well Adam, in the two posts I have about generating asDoc for AS3 projects, I have just mentioned my own experience after a lot of true/false trials and I’m not familiar with other keywords like “-sp” that you have used!

      Besides that, I never tried to generate the adobe code in my asDoc so I never tried and have no clue! though I would appreciate if you share your findings here so we can make this page even more helpful. Thanks.

Leave a Reply