private var _phoneNumeber:String = "";
[Bindable(event="submitClicked")]
[NonCommittingChangeEvent("change")]
public function get phoneNumber():String {
return _phoneNumeber;
}
public function set phoneNumber(value:String):void {
if (value.length<10) {
_phoneNumeber = value;
} else {
_phoneNumeber = phoneFormatter.format(value);
}
var eventObj:Event = new Event("change");
dispatchEvent(eventObj);
}
private function clickHandler():void{
var eventObj:Event = new Event("submitClicked");
dispatchEvent(eventObj);
}