2 Replies Latest reply on Jul 7, 2009 9:04 AM by xfer_rdy

    How to overide Slider a function ?

    xfer_rdy Level 1

      Hi,

       

      I'm trying to override a slider function, but I get an error : "Namespace was not found or is not a compile-time constant:

       

      Code:

      // ActionScript file
      package  {
          import mx.controls.sliderClasses.Slider;
          import mx.core.UIComponent;

       

      use namespace mx_internal;
         
          public class SliderX extends Slider{
             
              public function SliderX ():void{
                  super();
              }
             
          /**
           *  Get the thumb's x position from a slider value. 
           */
              override mx_internal function getXFromValue(v:Number):Number
              {

                  return 0;

              }

         }

      }