EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 700

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
700 Chapter 12: ActionScript Dictionary
The ^ may be used anywhere in the string to toggle between including characters and excluding
characters. The following code includes only uppercase letters, but excludes the uppercase
letter Q:
my_txt.restrict = "A-Z^Q";
You can use the \u escape sequence to construct restrict strings. The following code includes
only the characters from ASCII 32 (space) to ASCII 126 (tilde).
my_txt.restrict = "\u0020-\u007E";
TextField._rotation
Availability
Flash Player 6.
Usage
my_txt._rotation
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
my_txt._rotation = 450 is the same as my_txt._rotation = 90.
See also
Button._rotation, MovieClip._rotation
TextField.scroll
Availability
Flash Player 6.
Usage
my_txt.scroll
Description
Property; defines the vertical position of text in a text field. The scroll property is useful for
directing users to a specific paragraph in a long passage, or creating scrolling text fields. This
property can be retrieved and modified.
For more information on scrolling text, see “Creating scrolling text” on page 153.
Example
The following code is attached to an Up button that scrolls the my_txt text field.
on (release) {
my_txt.scroll = myText.scroll + 1;
}
See also
TextField.hscroll
, TextField.maxscroll

Table of Contents

Related product manuals