O'Reilly logo

Actionscript Cookbook by Joey Lott

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

8.21. Creating Text That Can Be Rotated

Problem

You want to make sure that text will continue to display even when it is rotated.

Solution

Use embedded fonts.

Discussion

Unless you specifically use an embedded font, text fields use device fonts. For most situations, this is perfectly workable. However, in situations in which you want to animate a text field (or its parent movie clip) by changing its _rotation property, you must use embedded fonts. Device fonts will disappear in a rotated text field.

See Also

Recipe 8.20 explains how to embed fonts.

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