2 Replies Latest reply on Dec 18, 2007 7:50 AM by ntsiii

    Could not resolve <mx:Script>

    kjdfsdf33
      I copy paste a sample code from Flex Builder and I receive the following error:
      Could not resolve <mx:Script> to a component implementation.

      Any help appreciated. Thanks

      whole code is:
      <?xml version="1.0"?>
      <!-- charts/BasicColumn.mxml -->
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml">
      <mx:Script><![CDATA[
      import mx.collections.ArrayCollection;
      [Bindable]
      public var expenses:ArrayCollection = new ArrayCollection([
      {Month:"Jan", Profit:2000, Expenses:1500},
      {Month:"Feb", Profit:1000, Expenses:200},
      {Month:"Mar", Profit:1500, Expenses:500}
      ]);
      ]]></mx:Script>
      <mx:Panel title="Column Chart">
      <mx:ColumnChart id="myChart" dataProvider="{expenses}">
      <mx:horizontalAxis>
      <mx:CategoryAxis
      dataProvider="{expenses}"
      categoryField="Month"
      />
      </mx:horizontalAxis>
      <mx:series>
      <mx:ColumnSeries
      xField="Month"
      yField="Profit"
      displayName="Profit"
      />
      <mx:ColumnSeries
      xField="Month"
      yField="Expenses"
      displayName="Expenses"
      />
      </mx:series>
      </mx:ColumnChart>
      <mx:Legend dataProvider="{myChart}"/>
      </mx:Panel>
      </mx:Application>