0 Replies Latest reply on Dec 9, 2009 12:40 AM by maddec2

    asdoc how to add a custom local namespace used in mxml with manifest file?

    maddec2

      Hi there

       


      I use the flex 4 beta1 sdk to test the following:

       


      I have:

       

      MainScreen.mxml:

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/halo"
         
          xmlns:views="com.xyz.core.view.components.*"
          >

       

          <views:AbcView id="abcView" right="20" />


      </s:Group>

       


      I tried to use a manifest file which seems to be how to handle this kind of situation (using ant):

          <arg line="-namespace views ${manifest.file}"/>
          <arg line="-doc-namespaces views"/>


      the manifest.xml contain the following:

       

      <?xml version="1.0" encoding="UTF-8"?>
      <componentPackage>
                 <component id="AbcView" class="com.xyz.core.view.components.AbcView" />
      </componentPackage>

       


      when I compile asdoc return the following error:

      ...MainScreen.mxml(52):  Error: Type was not found or was not a compile-time constant: AbcView

       


      Any idea how I can "force" asdoc to add/recognize AbcView.mxml ? Is my use of manifest file correct in this situation?

       

       

      Thank you in advance for your help.

       


      Best regards.

       

      maddec