1 Reply Latest reply on Oct 28, 2010 7:15 PM by Shongrunden

    I need help with this error please any one

    Qilindinzhu

      Error : Could not resolve <mx:XML> to a component implementation. 

       

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                     xmlns:s="library://ns.adobe.com/flex/spark"
                     xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="1024" minHeight="800"
                      skinClass="skins.AppSkin"
                      xmlns:components="components.*" xmlns:Components="Components.*" width="1282" height="740"
                      viewSourceURL="srcview/index.html"
                      >

       

         
         
         
          <fx:Script>
              <![CDATA[
                  import skins.AppSkin;
                  [Bindable]public var selectedNode:XML;
                 
              ]]>
             
          </fx:Script>
         
         
         
          <fx:Declarations>
             
             
          </fx:Declarations>
          <s:TabBar x="635.35" y="65.55" dataProvider="{GreenView}" width="520" height="35"/>
         
          <mx:ViewStack x="367.5" id="GreenView" width="790" height="518" resizeToContent="true" top="133.1">
             
              <Components:Home label="Home" id="Home"  height="516" y="9"/>
              <Components:AboutUs label="About Us"  id="Aboutus" width="791" x="-55" height="513"/>
              <Components:Products label="Products" id="Products"/>
              <Components:Contact label="Contact Us" id="Contactus">
              </Components:Contact>
         
          </mx:ViewStack>
          <mx:Tree id="TreeProject"
                   dataProvider="{dp.league}"
                   labelField="@label"
                   iconField="@icon"
                   showRoot="true"
                   width="320"
                   rowCount="9" />
         
        <mx:XML id="dp"> Here is the error occurs
              <mlb>
                  <league label="American League">
                      <division label="East">
                          <team label="Boston" />
                          <team label="New York" />
                          <team label="Toronto" />
                          <team label="Baltimore" />
                          <team label="Tampa Bay" />
                      </division>
                      <division label="Central">
                          <team label="Cleveland" />
                          <team label="Detroit" />
                          <team label="Minnesota" />
                          <team label="Chicago" />
                          <team label="Kansas City" />
                      </division>
                      <division label="West">
                          <team label="Los Angeles" />
                          <team label="Seattle" />
                          <team label="Oakland" />
                          <team label="Texas" />
                      </division>
                  </league>
              </mlb>
          </mx:XML>
         
          <mx:Style>
              Tree {
              folderClosedIcon: ClassReference(null);
              folderOpenIcon: ClassReference(null);
              }
          </mx:Style>

       

      </s:Application>