2 Replies Latest reply on Sep 27, 2010 12:01 PM by hjames28

    could not resolve <mx:AdvancedDataGrid> to a component implimentation

    hjames28
         im trying to get this facebook application to work but i keep getting this error 
      when i run the application: could not resolve <mx:AdvancedDataGrid> to a component implimentation

      it seems the namespaces are correct, what does this mean?

      <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="100%"
               height="100%" currentState="CONNECTING">



      <mx:AdvancedDataGrid id="adgFriends" dataProvider="{userFriends}"
                               designViewDataType="flat" horizontalCenter="0"
                               verticalCenter="19" includeIn="CONNECTED">
              <mx:columns>
                  <mx:AdvancedDataGridColumn headerText="Name"
                                             dataField="first_name"/>
                  <mx:AdvancedDataGridColumn headerText="Last Name"
                                             dataField="last_name"/>
              </mx:columns>
          </mx:AdvancedDataGrid>

      </s:Group>
        • 1. Re: could not resolve <mx:AdvancedDataGrid> to a component implimentation
          Anitha Selvaraj Level 2

          I think the namespace url is wrong.

           

          Check the below code. Its working fine.

           

          <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="100%"
                   height="100%" currentState="CONNECTING">



          <mx:AdvancedDataGrid id="adgFriends" dataProvider="{userFriends}"
                                   designViewDataType="flat" horizontalCenter="0"
                                   verticalCenter="19" includeIn="CONNECTED">
                  <mx:columns>
                      <mx:AdvancedDataGridColumn headerText="Name"
                                                 dataField="first_name"/>
                      <mx:AdvancedDataGridColumn headerText="Last Name"
                                                 dataField="last_name"/>
                  </mx:columns>
              </mx:AdvancedDataGrid>

          </s:Group>
          • 2. Re: could not resolve <mx:AdvancedDataGrid> to a component implimentation
            hjames28 Level 1

            if i change the  xmlns:mx="library://ns.adobe.com/flex/halo" namespace to


            xmlns:mx="library://ns.adobe.com/flex/mx" i get 2 sets of these errors

            "access of undefined property AIR" and

            "access of undefined property FLEX" referring to these pieces of code.

            i am referencing the Facebook_library_with_AIRConnect_v3.4_flex.swc

             

             

             

             

             

             

                       CONFIG::AIR
                        {
                            // DesktopSessionHelper import required for AIR and Facebook Connect
                            import com.facebook.utils.DesktopSessionHelper;
                            import com.facebook.session.DesktopSession;
                           
                            // Session variable when running as AIR app
                            protected var session:DesktopSessionHelper;
                        }
                       
                        CONFIG::FLEX
                        {
                            // FacebookSessionUtil import required for Flex (browser) app
                            import com.facebook.utils.FacebookSessionUtil;
                           
                            // Session variable when running as Flex (browser) app
                            protected var session:FacebookSessionUtil;
                        }