Skip to Content
ActionScript for Flash MX: The Definitive Guide, Second Edition
book

ActionScript for Flash MX: The Definitive Guide, Second Edition

by Colin Moock
December 2002
Intermediate to advanced content levelIntermediate to advanced
1088 pages
192h 4m
English
O'Reilly Media, Inc.
Content preview from ActionScript for Flash MX: The Definitive Guide, Second Edition
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

ActionScript 3.0 Game Programming University, Second Edition

ActionScript 3.0 Game Programming University, Second Edition

Gary Rosenzweig
ActionScript 3.0 Bible

ActionScript 3.0 Bible

Roger Braunstein
ActionScript 2.0 Language Reference for Macromedia® Flash® 8

ActionScript 2.0 Language Reference for Macromedia® Flash® 8

Francis Cheng, Jen deHaan, Robert L. Dixon, Shimul Rahim

Publisher Resources

ISBN: 059600396XCatalog PageErrata