Tweener Documentation
This class creates special properties used when controlling textfields.
First, import then initialize the class.
import caurina.transitions.properties.TextShortcuts; TextShortcuts.init();
Then, you can use any of the special properties listed below on a normal tweening. See the introduction to special properties for more information.
Property name (AS2/AS3) | Description | Target type | Type | Usual values | Related reference |
---|---|---|---|---|---|
_text | The text used inside a text field. Tweener changes one text to the other by removing the previous text, then replacing it with the new one, letter by letter. | TextField |
String | Any text string. | TextField.text |
_text_color | The color of the text inside a textfield. This is applied to the textfield's TextFormat object. |
TextField |
Number | Any color formatted as a number (for example, 0xffbb33). | TextFormat.color |
_text_color_r | The value of the Red channel of the color of the text inside a textfield. | TextField |
Number | A number from 0 to 255. | |
_text_color_g | The value of the Green channel of the color of the text inside a textfield. | TextField |
Number | A number from 0 to 255. | |
_text_color_b | The value of the Blue channel of the color of the text inside a textfield. | TextField |
Number | A number from 0 to 255. | |
_text_indent | The additional margin added to the first line of paragraphs of text inside a textfield. This number is rounded by the TextFormat class. |
TextField |
Number | Any value in pixels. | TextFormat.indent |
_text_leading | The additional distance between lines of text inside a textfield. This number is rounded by the TextFormat class. |
TextField |
Number | Any value in pixels. | TextFormat.leading |
_text_leftMargin | The left margin of a textfield. This number is rounded by the TextFormat class. |
TextField |
Number | Any value in pixels. | TextFormat.leftMargin |
_text_letterSpacing | The additional distance between individual letters in a textfield. | TextField |
Number | Any value in pixels. | TextFormat.letterSpacing |
_text_rightMargin | The right margin of a textfield. This number is rounded by the TextFormat class. |
TextField |
Number | Any value in pixels. | TextFormat.rightMargin |
_text_size | The size of the font used in a textfield. This number is rounded by the TextFormat class. |
TextField |
Number | Any value in points. | TextFormat.size |