Return to Snippet

Revision: 26243
at April 21, 2010 10:19 by adrianparr


Initial Code
package {
	import flash.display.Sprite;
	import flash.text.Font;

	[SWF(width='600', height='400', frameRate='30', backgroundColor='#000000')]

	public class App extends Sprite {
		[Embed(systemFont='Arial',fontName='Arial',mimeType='application/x-font')]
		private var arialFont:Class;

		public function App() {
			init();
		}

		private function init():void {
			Font.registerFont( arialFont );
		}
	}
}

Initial URL

                                

Initial Description

                                

Initial Title
AS3 Embed a system font in Flex

Initial Tags
Flex

Initial Language
ActionScript 3