0 Replies Latest reply on Apr 19, 2011 8:28 AM by digsafe

    pie chart wedge itemRollOver

    digsafe

      I need help with creating a custom pie chart class that will allow a function call on pie wedge rollOver.

      Right now I can get a function call on rollover using itemRollOver using;

       

      import mx.charts.events.ChartItemEvent;

       

      -in the <mx:PieChart>;
      itemRollOver="pieChart_itemRoll(event);"

       

      -which calls this function

      private function pieChart_itemRoll(evt:ChartItemEvent):void {
                      var psi:PieSeriesItem = evt.hitData.chartItem as PieSeriesItem;
                      trace(psi.item.target);
                      }

       

      Please advise on how can I put this into a custom PieChart .as that extends PieChart?

      Currently itemRollOver in my custom class throws an undefined property error.

      Thanks.