03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

See also<br />

border (TextField.border property)<br />

bottomScroll (TextField.bottomScroll property)<br />

public bottomScroll : Number [read-only]<br />

An integer (one-based index) that indicates the bottommost line that is currently visible the<br />

text field. Think of the text field as a window onto a block of text. The property<br />

TextField.scroll is the one-based index of the topmost visible line in the window.<br />

All the text between lines TextField.scroll <strong>and</strong> TextField.bottomScroll is currently<br />

visible in the text field.<br />

Example<br />

The following example creates a text field <strong>and</strong> fills it with text. You must insert a button (with<br />

the instance name "my_btn"), <strong>and</strong> when you click it, the scroll <strong>and</strong> bottomScroll<br />

properties for the text field are then traced for the comment_txt field.<br />

this.createTextField("comment_txt", this.getNextHighestDepth(), 0, 0, 160,<br />

120);<br />

comment_txt.html = true;<br />

comment_txt.selectable = true;<br />

comment_txt.multiline = true;<br />

comment_txt.wordWrap = true;<br />

comment_txt.htmlText = "What is hexadecimal?"<br />

+ "The hexadecimal color system uses six digits to represent color<br />

values. "<br />

+ "Each digit has sixteen possible values or characters. The characters<br />

range"<br />

+ " from 0 to 9 <strong>and</strong> then A to F. Black is represented by (#000000) <strong>and</strong><br />

white, "<br />

+ "at the (pposite end of the color system, is (#FFFFFF).";<br />

my_btn.onRelease = function() {<br />

trace("scroll: "+comment_txt.scroll);<br />

trace("bottomScroll: "+comment_txt.bottomScroll);<br />

};<br />

condenseWhite (TextField.condenseWhite property)<br />

public condenseWhite : Boolean<br />

A Boolean value that specifies whether extra white space (spaces, line breaks, <strong>and</strong> so on) in an<br />

HTML text field should be removed when the field is rendered in a browser. The default<br />

value is false.<br />

TextField 619

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!