724
Chapter 7: ActionScript for Flash
my_txt.borderColor = 0x00FF00;
my_txt.text = "Lorum ipsum";
See also
TextField.border
TextField.bottomScroll
Availability
Flash Player 6.
Usage
my_txt
.bottomScroll
:Number
Description
Read-only property; an integer (one-based index) that indicates the bottommost line that is
currently visible in
my_txt
. Think of the text field as a “window” onto a block of text. The
property
TextField.scroll
is the one-based index of the topmost visible line in the window.
All the text between lines
TextField.scroll
and
TextField.bottomScroll
is currently visible
in the text field.
Example
The following example creates a text field and fills it with text. The
scroll
and
bottomScroll
properties for the text field are then traced for the
comment_txt
field.
this.createTextField("comment_txt", this.getNextHighestDepth(), 0, 0, 160,
120);
comment_txt.html = true;
comment_txt.selectable = true;
comment_txt.multiline = true;
comment_txt.wordWrap = true;
comment_txt.htmlText = "<b>What is hexadecimal?</b><br>The hexadecimal color
system uses six digits to represent color values. Each digit has sixteen
possible values or characters. The characters range from 0 to 9 and then A to
F. Black is represented by (#000000) and white, at the opposite end of the
color system, is (#FFFFFF).";
my_btn.onRelease = function() {
trace("scroll: "+comment_txt.scroll);
trace("bottomScroll: "+comment_txt.bottomScroll);
};
TextField.condenseWhite
Availability
Flash Player 6.
Usage
my_txt
.condenseWhite
:Boolean
Содержание FLEX-FLEX ACTIONSCRIPT LANGUAGE
Страница 1: ...Flex ActionScript Language Reference...
Страница 8: ......
Страница 66: ...66 Chapter 2 Creating Custom Classes with ActionScript 2 0...
Страница 76: ......
Страница 133: ...break 133 See also for for in do while while switch case continue throw try catch finally...
Страница 135: ...case 135 See also break default strict equality switch...
Страница 146: ...146 Chapter 5 ActionScript Core Language Elements See also break continue while...
Страница 229: ...while 229 i 3 The following result is written to the log file 0 3 6 9 12 15 18 See also do while continue for for in...
Страница 808: ...808 Chapter 7 ActionScript for Flash...
Страница 810: ...810 Appendix A Deprecated Flash 4 operators...
Страница 815: ...Other keys 815 Num Lock 144 186 187 _ 189 191 192 219 220 221 222 Key Key code...
Страница 816: ...816 Appendix B Keyboard Keys and Key Code Values...
Страница 822: ...822 Index...