Graphics Flex


        
            
                
        
                    private var style:StyleSheet;
        
                    [Bindable]
                    private var arr:Array;
        
                    private function findAllFonts():void
                    {
                        arr = Font.enumerateFonts(true);
                        arr.sortOn("fontName", Array.CASEINSENSITIVE);
                    }
        
                    private function setFont():void
                    {
                        text.setStyle("fontFamily", (cb.selectedItem as Font).fontName);
                    }