O'Reilly logo

The ActionScript™ 3.0 Migration Guide: Making the Move from ActionScript 2.0 by Kris Hadlock

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Text

ONE OF THE most valuable design features in Flash is the ability to embed any font in a SWF file and have it render the same on any platform. Flash also lets you display dynamic text as an embedded font, embed and format fonts dynamically, and apply text-field listeners to trigger events based on specific user interactions.

In this chapter you will learn how to embed fonts, dynamically create and format text fields, and replace ActionScript 2 text-field callback-function properties with the new text events available in ActionScript 3.

Font Usage

With the embed feature, Flash lets you use any font from your computer on the Web. When a font is embedded, end users do not need to have the font on their system to see the result. The extent ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required