1 Reply Latest reply on Oct 10, 2009 6:16 AM by Gregory Lafrance

    TypeError: Error #1034: Type Coercion failed: cannot convert mx.charts.events::ChartItemEvent ..... to mx.events.IndexChangedEvent

    sdsjames

      Hi all,

       

      I'm getting the following error when I make a plot chart selectable

      ------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------ -----------------------

      TypeError: Error #1034: Type Coercion failed: cannot convert. mx.charts.events::ChartItemEvent@eb5c881 ti mx.events.IndexChangedEvent.
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()
      at mx.charts.chartClasses::ChartBase/regionChangeHandler()[C:\work\flex\dmv_automation\proje cts\datavisualisation\src\mx\charts\chartClasses\ChartBase.as:4417]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()
      at mx.charts.chartClasses::ChartBase/dispatchRegionChange()[C:\work\flex\dmv_automation\proj ects\datavisualisation\src\mx\charts\chartClasses\ChartBase.as:4648]
      at mx.charts.chartClasses::ChartBase/endTracking()[C:\work\flex\dmv_automation\projects\data visualisation\src\mx\charts\chartClasses\ChartBase.as:4660]

      ------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------ -----------------------

      The only code I changed was

      adding in the following to the <mx:PlotChart tag
      selectionMode="multiple"

       

      Please give me some solution !