topical media & game development
actionscript-fonts-Fonts.ax
actionscript-fonts-Fonts.ax
[swf]
flex
package {
import flash.display.*;
import flash.text.*;
// Embed fonts for use by any .swf file that loads this file
public class @ax-actionscript-fonts-Fonts extends Sprite {
[Embed(source="c:/windows/fonts/verdana.ttf",
fontFamily="Verdana")]
private var verdana:Class;
[Embed(source="c:/windows/fonts/verdanab.ttf",
fontFamily="Verdana",
fontWeight="bold")]
private var verdanaBold:Class;
// Constructor
public function @ax-actionscript-fonts-Fonts () {
// Register this class's embedded fonts in the global font list
Font.registerFont(verdana);
Font.registerFont(verdanaBold);
}
}
}
(C) Æliens
27/08/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.