Textfield._Rotation - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

TextField._rotation

Availability
Flash Player 6.
Usage
my_txt._rotation:Number
Description
Property; the rotation of the text field, in degrees, from its original orientation. Values from
0 to 180 represent clockwise rotation; values from 0 to -180 represent counterclockwise rotation.
Values outside this range are added to or subtracted from 360 to obtain a value within the range.
For example, the statement
Rotation values are not supported for text files that use device fonts. You must use embedded
fonts to use
_rotation
Example
In this example, you need to create a dynamic text field called
ActionScript to embed fonts and rotate the text field. The reference to
symbol in the library, with linkage set to
var my_fmt:TextFormat = new TextFormat();
my_fmt.font = "my font";
this.createTextField("my_txt", this.getNextHighestDepth(), 10, 10, 160, 120);
my_txt.wordWrap = true;
my_txt.embedFonts = true;
my_txt.text = "Hello world";
my_txt.setTextFormat(my_fmt);
my_txt._rotation = 45;
Apply additional formatting for the text field using the
See also
Button._rotation,
914
Chapter 2: ActionScript Language Reference
my_txt._rotation = 450
with a text field.
my font
MovieClip._rotation
is the same as
my_txt._rotation = 90
, and then use the following
my_txt
my font
.
TextFormat
class.
.
refers to a Font

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents