Return to Snippet

Revision: 8471
at September 24, 2008 09:55 by linkage


Updated Code
package
{
    public class Assets
    {
        [Embed(source='fonts/arial.ttf', 
            fontName='Arial', unicodeRange='U+0010-U+007F,U+00C4,U+00D6,U+00DC,U+00E4,U+00F6,U+00FC,U+00DF',
            mimeType='application/x-font-truetype')]
        public static var ArialBold:Class;
        [Embed(source='fonts/arialbold.ttf', 
            fontName='ArialBold', unicodeRange='U+0010-U+007F,U+00C4,U+00D6,U+00DC,U+00E4,U+00F6,U+00FC,U+00DF',
            mimeType='application/x-font-truetype')]
        public static var Arial:Class;
    }
}

Revision: 8470
at September 24, 2008 09:54 by linkage


Initial Code
package
{
    public class Assets
    {
        [Embed(source='fonts/arial.ttf', 
            fontName='Arial', unicodeRange='U+0010-U+007F,U+00C4,U+00D6,U+00DC,U+00E4,U+00F6,U+00FC,U+00DF',
            mimeType='application/x-font-truetype')]
        public static var ArialBold:Class;
        [Embed(source='fonts/arialbold.ttf', 
            fontName='ArialBold', unicodeRange='U+0010-U+007F,U+00C4,U+00D6,U+00DC,U+00E4,U+00F6,U+00FC,U+00DF',
            mimeType='application/x-font-truetype')]
        public static var NiveaBook:Class;
    }
}

Initial URL

                                

Initial Description

                                

Initial Title
Embedding Fonts in AS3 - Assets Class

Initial Tags

                                

Initial Language
ActionScript 3