Condensewhite (Textfield.condensewhite Property) - MACROMEDIA FLASHLITE2 ACTIONSCRIPT-LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

All the text between lines
visible in the text field.
Availability: ActionScript 1.0; Flash Lite 2.0
Example
The following example creates a text field and fills it with text. You must insert a button (with
the instance name "my_btn"), and when you click it, the
properties for the text field are then traced for the
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);
};

condenseWhite (TextField.condenseWhite property)

public condenseWhite :
A Boolean value that specifies whether extra white space (spaces, line breaks, and so on) in an
HTML text field should be removed when the field is rendered in a browser. The default
value is
.
false
If you set this value to
to place line breaks in the text field.
If the text field's
.html
Availability: ActionScript 1.0; Flash Lite 2.0
656
ActionScript classes
TextField.scroll
Boolean
, you must use standard HTML commands such as
true
is
, this property is ignored.
false
and
TextField.bottomScroll
and
scroll
field.
comment_txt
is currently
bottomScroll
and
<BR>
<P>

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash lite 2

Table of Contents