http://www.myxones.com/2009/03/18/embed-font-in-actionscript-30/

A few days back I talked about embedding fonts in actionscript 2.0. Since Adobe flash cs4 is out for a time now and people must be using actionscript 3.0, I thought why not discuss how to embed fonts in actionscript 3.0.

You can get the code for this example here.

Its a lot similar to actionscript 2.0.

newfont

You create a new font object in the library by right clicking and choosing new Font.

fontdia

In the new font dialog, DONT forget to check the box for exporting the font for actionscript.

export

Its just going to show you a warning, no need to take any stress, just click OKAY.

newfontobject

Then you create an object for the font you just created in actionscript.

textfiled

Create a text field on the movie using the text tool.

text2

Assign this textfield an instance name.

name

Now you can use your embedded font in this newly created textfield by adding the following code.

embedcode

Modify properties like rotation and alpha of the text field and you can see the effects when you hit CTRL + ENTER.

Hope it works