Development Flex



    
        
            private function initializeHandler(event:Event):void {
                var dates:Array = ExternalInterface.call("getDates");
                calendar.disabledRanges = dates;
                ExternalInterface.addCallback("setEnabled", setEnabled);
            }
            public function setEnabled(value:Boolean):void {
                calendar.enabled = value;
            }