2 Replies Latest reply on Jul 21, 2009 3:50 AM by Magick9393

    Why cant I access e.element.labelField in actionscript?

    Magick9393 Level 1

      Hi all

       

      I am working on a function for a custom tooltip on a flex chart.

       

      I would like to display the labelField in the tooltip. I can see this value in the Variables window in Flex Builder, but when I try to access this in actionscript

      with this code:

      var mySelectedBar:String=new String;
      mySelectedBar=e.element.labelField;

       

      I get the following error:

      1119: Access of possibly undefined property labelField through a reference with static type mx.charts.chartClasses:IChartElement.