9 Replies Latest reply on Feb 14, 2008 12:19 PM by Peter deHaan

    Type Coercion error when using Chart change event

    swashbuck1r
      After upgrading to the Flex Builder 3 December build. I get a type coercion error whenever I subscribe to a chart "change" event. I get this error even with the "Selecting chart items" code sample in the Flex Help. Is this a known issue?

      TypeError: Error #1034: Type Coercion failed: cannot convert mx.charts.events::ChartItemEvent@7107b81 to mx.events.IndexChangedEvent.
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framewor k\src\mx\core\UIComponent.as:9041]
      at mx.charts.chartClasses::ChartBase/regionChangeHandler()[C:\Work\flex\dmv_automation\proje cts\datavisualisation\src\mx\charts\chartClasses\ChartBase.as:4393]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framewor k\src\mx\core\UIComponent.as:9041]
      at mx.charts.chartClasses::ChartBase/dispatchRegionChange()[C:\Work\flex\dmv_automation\proj ects\datavisualisation\src\mx\charts\chartClasses\ChartBase.as:4624]
      at mx.charts.chartClasses::ChartBase/endTracking()[C:\Work\flex\dmv_automation\projects\data visualisation\src\mx\charts\chartClasses\ChartBase.as:4636]