Textarea Component - Adobe 65036570 - Director - PC User Manual

User guide
Hide thumbs Also See for 65036570 - Director - PC:
Table of Contents

Advertisement

TextArea component

Use a TextArea component wherever you need a multiline text field. If you need a single-line text field, use the
TextInput
component. For example, you could use a TextArea component as a comment field in a form. You could
set up a listener that checks if the field is empty when a user tabs out of the field. That listener could display an error
message indicating that a comment must be entered in the field.
TextArea component parameters
You can set the following authoring parameters for each TextArea component instance in the Property inspector or
in the Component Inspector panel:
text indicates the contents of the TextArea. You cannot enter carriage returns in the Property inspector or
Component Inspector panel. The default value is "" (empty string).
html indicates whether the text is formatted with HTML (true) or not (false). The default value is false.
editable indicates whether the TextArea component is editable (true) or not (false). The default value is true.
wordWrap indicates whether the text wraps (true) or not (false). The default value is true.
Write code to control these and additional options for TextArea components by using its properties, methods, and
events.
Using styles with the TextArea component
The TextArea component supports one set of component styles for all text in the field. However, you can also display
HTML compatible with Flash Player HTML rendering. To display HTML text, set
If the name of a style property ends in
properties. For more information, see "Using styles to customize component color and text" in the Flash documen-
tation.
A TextArea component supports the following styles:
Style
color
embedFonts
fontFamily
fontSize
fontStyle
fontWeight
textAlign
textDecoration
, it is a color style property and behaves differently than non-color style
Color
Description
The default color for text.
The fonts to embed in the document.
The font name for text.
The point size for the font.
The font style, either "normal" or "italic".
The font weight, either "normal" or "bold".
The text alignment: either "left", "right", or "center".
The text decoration, either "none" or "underline".
ADOBE DIRECTOR 11.0
to
.
TextArea.html
true
232
User Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Director 11

Table of Contents