If you what to see the the breadth and rich variableness of flash and as3, you need look no further than the multitude of methods hacks and approaches to dressing text in as3.
It one of the flash platforms greatest curses and greatest assets, that it is one tool for many peoples, all from different disciplines, so there are a multitude of ways of achieving the same result. There is a rich spectrum of user knowledge based solutions, from the no brainer way of dressed text, static text fields through to heavy scripted OOP Gandalf level coding.
Here’s what I set out to do.
I wanted my text in an XML file.
I wanted its appearance to be controlled by CSS, to allow for maximum flexibility, and comparability e.g porting copy to or from Html for non flash browsers.
Firstly I looked into the ‘@ font face’ route within css, using url to an available ttf, oft font. Although this may ultimately be the way forward, but in the time I had available it proved inconclusive, to be followed up at a later date.
For further reading have a look at the following links.
Here’s what I eventually went with:
First embed a font, into an FLA libary http://www.adobe.com/devnet/flash/quickstart/embedding_fonts/
In the css file reference the font family to the name you used in the library;