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. 1;
}
See also
TextField.hscroll
,
TextField.maxscroll
Summary of Contents for FLASH MX 2004 - ACTIONSCRIPT
Page 1: ...ActionScript Reference Guide...
Page 8: ...8 Contents...
Page 12: ......
Page 24: ...24 Chapter 1 What s New in Flash MX 2004 ActionScript...
Page 54: ...54 Chapter 2 ActionScript Basics...
Page 80: ...80 Chapter 3 Writing and Debugging Scripts...
Page 82: ......
Page 110: ...110 Chapter 5 Creating Interaction with ActionScript...
Page 112: ......
Page 120: ...120 Chapter 6 Using the Built In Classes...
Page 176: ......
Page 192: ...192 Chapter 10 Working with External Data...
Page 202: ...202 Chapter 11 Working with External Media...
Page 204: ......
Page 782: ...782 Chapter 12 ActionScript Dictionary...
Page 793: ...Other keys 793 221 222 Key Key code...
Page 794: ...794 Appendix C Keyboard Keys and Key Code Values...
Page 798: ...798 Appendix D Writing Scripts for Earlier Versions of Flash Player...
Page 806: ...806 Appendix E Object Oriented Programming with ActionScript 1...
Page 816: ...816 Index...