2 Replies Latest reply on Jul 30, 2010 3:45 AM by rootsounds

    Error.Unable to use <mx:CustomDateTimeAxis> to implement the component.

    VladBlinov

      Hello.

       

      I have a modified class DateTimeAxis to show data labels in my own format:

       

      package

      {

           import mx.charts.DateTimeAxis;

       

           public class CustomDateTimeAxis extends mx.charts.DateTimeAxis

           {

                public function CustomDateTimeAxis()

                {

                     super();

                }

       

                override protected function formatDays(d:Date, previousValue:Date, axis:DateTimeAxis):String

                {

                     return d["date"];

                }

           }

      }

       

      In main application:

       

      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

      ...

      <mx:horizontalAxis>

           <mx:CustomDateTimeAxis id="xAxis" dataUnits="days" parseFunction="myParseFunction"/>

      </mx:horizontalAxis>

       

      The compiler produces an error:

      "Unable to use <mx:CustomDateTimeAxis> to implement the component."

       

      Can you help me. Thank you.