1 Reply Latest reply on Oct 2, 2011 2:09 PM by juliojfc

    Getting errors trying to generate ASDOC for a library

    juliojfc Level 1

      Trying to generate ASDOC documentation for a library and getting errors on some classes.

       

      Error: Could not resolve <s:SolidColorStroke> to a component implementation

      Error: Could not resolve <s:SolidColor> to a component implementation

      Error: Could not resolve <s:Sequence> to a component implementation

      ....

       

      Of course the library compiles fine and works fine as well. Only asdoc gives the errors above.

       

      Here are the arguments being passed to asdoc:

       

       

      -source-path "${workspace_loc:/FLEX44D}"

      -lenient

      -doc-classes FLEX44D

      -main-title "Flex44D Library"

      -window-title "Flex44D Library Documentation"

      -output "${workspace_loc}/FLEX44DDocs"

      -namespace http://flex44d.skunkwerks.ca flex44D-manifest.xml

      -doc-namespaces http://flex44d.skunkwerks.ca 

      -keep-xml=true -skip-xsl=true

       

       

      Any idea what  might be causing the errors above? Weird that asdoc chokes on those spark classes.

       

      Am I missing any argument?

       

      FYI: using SDK 4.5.1, with AIR 2.7.

       

      TIA

      julio

        • 1. Re: Getting errors trying to generate ASDOC for a library
          juliojfc Level 1

          So after some struggle to find a solution to my problems,I looked at the sdk asdoc/build.xml and noticed some special name spaces used there. I solved my problem by adding the following namespace references to asdoc command line:

           

          -namespace+="http://ns.adobe.com/2009/mx-mxml","/Applications/Adobe Flash Builder 4.5/sdks/4.5.1/frameworks/projects/mx/manifest.xml"

          -namespace+="http://www.adobe.com/2006/mxml","/Applications/Adobe Flash Builder 4.5/sdks/4.5.1/frameworks/mxml-manifest.xml"

          -namespace+="library://ns.adobe.com/flex/spark","/Applications/Adobe Flash Builder 4.5/sdks/4.5.1/frameworks/projects/spark/manifest.xml"

          -namespace+="library://ns.adobe.com/flex/mx","/Applications/Adobe Flash Builder 4.5/sdks/4.5.1/frameworks/mxml-manifest.xml"

          -namespace+="library://ns.adobe.com/flex/spark-mobilecomponents","/Applications/Adobe Flash Builder 4.5/sdks/4.5.1/frameworks/projects/mobilecomponents/manifest.xml"

          -namespace+="library://ns.adobe.com/flex/spark-dmv","/Applications/Adobe Flash Builder 4.5/sdks/4.5.1/frameworks/projects/spark_dmv/manifest_spark_dmv.xml"

           

           

          May not need all those namespaces, but they did the trick. After adding them the errors above disappeared.

           

          The path's are for OS X, sdk 4.5.1, you may need to adjust them to suit your OS+sdk.

           

          Hope this helps someone else

          julio