5 Replies Latest reply on Aug 28, 2011 11:22 PM by DonatasK

    mxml inheritance

    DonatasK

      hello,

       

      here I have

       

      BasicManager.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/mx" width="400" height="300">   
          <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
          </fx:Declarations>
          <s:Button id="btnNewItem" left="10" top="10" label="New"
                    click="btnNewItem_clickHandler(event)" icon="assets/add_16x16.png"/>
      </s:Group>

       

      it has a button in it and it is shown in designer.

       

      Another file I have:

       

      ClientManager.mxml

       

      <?xml version="1.0" encoding="utf-8"?>
      <GUI:BasicManager xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:s="library://ns.adobe.com/flex/spark"
                        xmlns:mx="library://ns.adobe.com/flex/mx"
                        xmlns:GUI="GUI.*"
                        width="618" height="346">
          <GUI:layout>
              <s:BasicLayout/>
          </GUI:layout>
          <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
          </fx:Declarations>
             
          <mx:AdvancedDataGrid id="adgClientList" left="143" right="10" top="53" bottom="10"
                               designViewDataType="flat"
                               variableRowHeight="true">
              <mx:columns>
                  <mx:AdvancedDataGridColumn id="chdTitle" dataField="Name" headerText="Name"/>
              </mx:columns>
          </mx:AdvancedDataGrid>
      </GUI:BasicManager>

       

      When I add ClientManager component to application, the button (declared in BasicManager.mxml) doesn't appear. What do I do wrong?

       

      Thanks,

      Donatas