
TextField.maxhscroll Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
849
this.createTextField("userName_txt", 1, 0, 0, 200, 20);
userName_txt.type = "input";
userName_txt.text = "your name here";
userName_txt.maxChars = 15;
See Also
TextField.htmlText, TextField.restrict, TextField.text, TextField._width,
String.charAt(),
String.length
TextField.maxhscroll Property
the maximum distance text can be scrolled to the left
Flash 6
read-only
theField.maxhscroll
Description
The integer maxhscroll property indicates, in pixels, the maximum distance a field’s text
can be scrolled horizontally to the left. The
maxhscroll property typically is used to detect
when text has been moved left as far as it will go, or to force a text field to scroll its
maximum distance.
When
theField.type is set to “dynamic”, maxhscroll tells us how far theField’s longest line
overflows the right border (when
hscroll is 0). When theField.type is set to “input”,
maxhscroll also includes a small buffer space at the right side of theField, (approximately
one-fourth of the field’s width). This buffer allows room for user input. When
hscroll is
equal to
maxhscroll, theField’s longest line of text appears flush with the right border
(minus the buffer space if
theField.type is set to “input”).
Figure R-4 depicts
maxhscroll for a dynamic text field ...