
TextField._rotation Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
863
To include the \, ^, or – characters, use \\\\, \\^, and \\–. For example, the following code
restricts text entry to the letters a–z and the characters \, ^, and –:
theField_txt.restrict = "a-z\\^\\-\\\\";
The restrict property does not limit text changes made by a script; it applies to user input
only. That is, the
text and htmlText properties can be set to any value, regardless of
restrict’s limitations. Also, restrict does not dictate which characters are exported as
font outlines with the movie; it merely limits text entry. Font outline export can be set via
the authoring tool only, using the Character button in the text field Property inspector. See
TextField.embedFonts for details on exporting fonts.
Bugs
Setting restrict to the empty string ("") should entirely disable text input; however, in
Flash Player 6, it allows any character to be entered, exactly as if
restrict were set to null.
To disable input entirely, set the field’s
type property to “dynamic” and its selectable
property to false.
See Also
TextField.embedFonts, TextField.maxChars, TextField.password, TextField.selectable,
TextField.type; “Unicode-style escape sequences,” in Chapter 4; Appendix B
TextField._rotation Property
rotation, in degrees, of a text field ...