0 Replies Latest reply on Aug 9, 2006 8:43 AM by Newsgroup_User

    [FLEX 2.0 SDK] error compile: Unable to resolve a class for factoryClass

    Level 7
      hi guys, i can't compile mxml with flex 2.0 sdk
      this is the output :

      "C:\Program Files\Adobe\Flex2SDK\bin\mxmlc.exe"
      "prova.mxml" -accessible=false -allow-source-path-overlap=false -as3=true -benchmark=true
      -debug=true -default-background-color 13421823 -default-frame-rate
      24 -es=false -generate-frame-loader=false -headless-server=true -incremental=false
      -keep-generated-actionscript=false -lazy-init=false -optimize=false -show-actionscript-warnings=true
      -show-binding-warnings=true -show-deprecation-warnings=true -strict=true -use-network=true
      -verbose-stacktraces=false -warnings=true
      Loading configuration file C:\Program
      Files\Adobe\Flex2SDK\frameworks\flex-config.xml
      Initial setup: 421ms
      Loaded 7 SWCs: 1000ms
      Error: Unable to resolve a class for factoryClass:
      _prova_mx_managers_SystemManager.
      Files: 366 Time: 4907ms
      Total time: 6328ms

      and this is the file prova.mxml
      http://livedocs.macromedia.com/flex/2/langref/mx/controls/MenuBar.html#event:itemClick

      <?xml version="1.0"?>
      <!-- Simple example to demonstrate the MenuBar control. -->
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml"
      creationComplete="initCollections();" >

      <mx:Script>
      <![CDATA[

      import mx.events.MenuEvent;
      import mx.controls.Alert;
      import mx.collections.*;

      [Bindable]
      public var menuBarCollection:XMLListCollection;

      private var menubarXML:XMLList =
      <>
      <menuitem label="Menu1">
      <menuitem label="MenuItem 1-A" data="1A"/>
      <menuitem label="MenuItem 1-B" data="1B"/>
      </menuitem>
      <menuitem label="Menu2">
      <menuitem label="MenuItem 2-A" type="check"
      data="2A"/>
      <menuitem type="separator" />
      <menuitem label="MenuItem 2-B" >
      <menuitem label="SubMenuItem 3-A" type="radio"
      groupName="one" data="3A"/>
      <menuitem label="SubMenuItem 3-B" type="radio"
      groupName="one" data="3B"/>
      </menuitem>
      </menuitem>
      </>;

      // Event handler for the MenuBar control's itemClick event.
      private function menuHandler(event:MenuEvent):void {
      Alert.show("Label: " + event.item.@label + "\n" +
      "Data: " + event.item.@data, "Clicked menu item");
      }

      // Event handler to initialize the MenuBar control.
      private function initCollections():void {
      menuBarCollection = new XMLListCollection(menubarXML);
      }
      ]]>
      </mx:Script>

      <mx:Panel title="MenuBar Control Example" height="75%" width="75%"
      paddingTop="10" paddingLeft="10">

      <mx:Label width="100%" color="blue"
      text="Select a menu item."/>

      <mx:MenuBar labelField="@label" itemClick="menuHandler(event);"
      dataProvider="{menuBarCollection}" />

      </mx:Panel>
      </mx:Application>


      can you compile it? Any ideas.....

      Thx

      Luca[M]