import flash.events.Event;
[Bindable(event="myValueChanged")]
private function isEnabled():String {
if (myValue)
return 'true';
else
return 'false';
}
private var _myValue:Boolean = false;
public function set myValue(value:Boolean):void {
_myValue = value;
dispatchEvent(new Event("myValueChanged"));
}
public function get myValue():Boolean {
return _myValue;
}