
TextField.embedFonts Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
835
adds a getPageSize() method to all TextField objects; when invoked on a TextField instance,
the method returns the number of viewable lines in that field:
TextField.prototype.getPageSize = function () {
var pageSize = this.bottomScroll - (this.scroll - 1);
trace("Page size is " + pageSize);
return pageSize;
}
The page size of a text field can be used to scale a scroll handle proportionately in a corre-
sponding scroll bar. Note that the number of displayable lines in a field can vary,
depending on the font sizes of the currently displayed text.
See Also
TextField.maxscroll, TextField.scroll; the FScrollBar component in Appendix E
TextField.condenseWhite Property
specifies whether HTML whitespace should be condensed
Flash 6 (undocumented)
read/write
theField.condenseWhite
Description
When set to true, the Boolean condenseWhite property causes a field’s HTML text to be
condensed, removing all excess whitespace characters (tab, line break, space, etc.). Hence,
the field’s HTML rendering mirrors a typical web browser—multiple spaces behave as a
single space between words and the newline character “
\n” no longer serves as a line break;
the
<P> and <BR> tags must be used instead. In this mode, HTML text parsing behaves like
Flash’s ...