Components Flex



    
        
        import mx.controls.Alert;
        public function checkPassword():void
        {
            if(password.text.length < 1)
                Alert.show("Missing Password!");
            else
                Alert.show("Looks Good!");
        }