Data Model Flex



        
            A
            B
            C
        
    
    
        
            private var myStringValue:String;
            
            [Bindable(event="myStringValueChanged")]
            private function isOrangeChosen():Boolean
            {
                return myStringValue == "Orange";
            }
            
            public function get selectedFruit():String
            {
                return myStringValue;
            }
            public function set selectedFruit( value:String ):void
            {
                myStringValue = value;
                dispatchEvent( new Event( "myStringValueChanged" ) );
            }