Recipe 8.21 Creating Text That Can Be Rotated

8.21.1 Problem

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

8.21.2 Solution

Use embedded fonts.

8.21.3 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.

8.21.4 See Also

Recipe 8.20 explains how to embed fonts.



ActionScript Cookbook
ActionScript 3.0 Cookbook: Solutions for Flash Platform and Flex Application Developers
ISBN: 0596526954
EAN: 2147483647
Year: 2005
Pages: 425

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net