private var myString:String;
private var myStringArray:Array = ["A", "B", "C"];
private function initHandler():void
{
fruitCB.dataProvider = myStringArray;
}
[Bindable(event="myStringValueChanged")]
private function isOrangeChosen():Boolean
{
return myString == "Orange";
}
public function get fruit():String
{
return myString;
}
public function set fruit( str:String ):void
{
myString = str;
dispatchEvent( new Event( "myStringValueChanged" ) );
}