package components
{
    
    import flash.events.Event;
    import flash.events.EventDispatcher;
    import flash.utils.Dictionary;
        
    public class BindableDictionary extends EventDispatcher
    {
        public function BindableDictionary()
        {
            super();
            
        }
        
        private var dictionary:Dictionary = new Dictionary();
        
        [Bindable("change")]
        public function get(key:String):Object
        {
            return dictionary[key];
        }
        
        public function put(key:Object, value:Object):void
        {
            dictionary[key] = value;
            dispatchEvent(new Event(Event.CHANGE));
        }
    }
    
}