package{ import flash.display.Sprite; import flash.text.*; public class Main extends Sprite{ public function Main(){ var fonts:Array = Font.enumerateFonts( ); fonts.sortOn("fontName", Array.CASEINSENSITIVE); for (var i:int = 0; i < fonts.length; i++) { trace(fonts[i].fontName + ", " + fonts[i].fontStyle); }
} } }
Related Scripts with Example Source Code in same category :