Hi,

I try to build a validation class with AS. I extends UIComponent to build the 
class,but I an not use "this.addChild(stVar);" because UIComponent only can 
addChild with DisplayObject.

which class I can use to take place "UIComponent" and I can use addChild with 
validator object?

Thanks

Mark

------------------------------------------------------------------
source code:

public class ValidatorComponent extends UIComponent 
        {
                private var validatorArray:Array;  
                
                public function ValidatorComponent()            
                {
                        super();
                        this.validatorArray = new Array;
                }
                
                public function 
addStringValidator(id:String,source:Object):void{
                
                     var stVdt:StringValidator = new StringValidator();         
    
                     stVdt.initialized(source,id);
                     stVdt.property = "text";
                     this.addChild(stVar);                   
                     validatorArray.push(id);
                }
                
          }             

Reply via email to