Rotation (Textfield._Rotation Property) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Parameters
beginIndex:Number
- The end index value for the replacement range.
endIndex:Number
- The text to use to replace the specified range of characters.
newText:String
Example
The following example creates a text field called
to the field. The
indexOf()
symbol (
). If the symbol is found, the specified text (between the index of 0 and the symbol)
@
replaces with the string
Output panel.If the symbol is not found, an error message writes to the log file.
this.createTextField("my_txt", this.getNextHighestDepth(), 10, 10, 320,
22);
my_txt.autoSize = true;
my_txt.text = "dog@house.net";
var symbol:String = "@";
var symbolPos:Number = my_txt.text.indexOf(symbol);
if (symbolPos>-1) {
my_txt.replaceText(0, symbolPos, "bird");
} else {
trace("symbol '"+symbol+"' not found.");
}

_rotation (TextField._rotation property)

public _rotation :
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
my_txt._rotation = 90
Rotation values are not supported for text fields that use device fonts. You must use embedded
fonts to use
_rotation
Note: This property is not supported for Arabic, Hebrew, and Thai.
Availability: ActionScript 1.0; Flash Lite 2.0
- The start index value for the replacement range.
method is used to find the first occurrence of the specified
. If the symbol is not found, an error message is displayed in the
bird
Number
my_txt._rotation = 450
.
with a text field.
and assigns the text
my_txt
is the same as
dog@house.net
TextField
675

Advertisement

Table of Contents
loading

Table of Contents