1 Reply Latest reply on Nov 2, 2009 6:01 AM by mraak

    Flex4 Bug: Library Project with nested custom MXML comps gives errors

    mraak Level 1

      I have  simple Flex Library Project with couple of basic custom MXML components, actually just subclasses of Group and List.If I put a List in a group, it gives me all sorts of errors.

       

      TestComp.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"
               width="400" height="300"
               xmlns:list="com.simplecomps.list.*">
          <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
          </fx:Declarations>
         
          <list:ListOut id="lst" />
      </s:Group>

       

       

      ListOut.mxml

      <?xml version="1.0" encoding="utf-8"?>
      <s:List xmlns:fx="http://ns.adobe.com/mxml/2009"
              xmlns:s="library://ns.adobe.com/flex/spark"
              xmlns:mx="library://ns.adobe.com/flex/halo" width="400" height="300"
              xmlns:list="com.simplecomps.list.*">
          <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
          </fx:Declarations>

       

      </s:List>

       

       

       

      First of all I get this error:


      1046: Type was not found or was not a compile-time constant: ListOut.    TestComp.mxml    SimpleComps/src/com/simplecomps/list   

       

      But also this:


      1144: Interface method get defaultButton in namespace mx.managers:IFocusManagerContainer is implemented with an incompatible signature in class ListOut.    ListOut.mxml    SimpleComps/src/com/simplecomps/list  

       

      Don't know which one is more weird. I've never experienced something like this in Flex 3.