2 Replies Latest reply on Nov 16, 2006 12:12 AM by 01robert

    Why NumberValidator's subclass does not work?

    01robert
      I have wroten a subclass of NumberValidator . I try to use the subclass replace NumberValidator in MXMLFile, but the compiler raised a error:
      Could not resolve <myCtl:myNumberValidator> to a component implementation.
      Would u like to tell me the reason?
      thanks.

      The following script is the subclass :
      package {
      import mx.validators.NumberValidator;

      public class myNumberValidator extends NumberValidator
      {
      [Inspectable(category="Errors", defaultValue="数字太大,超过了精确度")]
      public var precisionError:String;

      public function NumberValidator():void{
      super();
      }
      }
      }