• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Adding a Text Area

The TextArea component works with the ActionScript TextField object. Once a TextArea component is added to the Stage, you can use styles to customize font, size, and color. In addition, a TextArea component can be formatted using HTML. If this sounds similar to the TextInput component, you're right. In fact, the major difference between a TextInput, and Text Area field is the ability of the TextArea field to generate multiple lines. TextArea fields can be used to hold information. For example, you can use a TextArea component to create a comment, or suggestion field on an interactive form.

Add a TextArea Component

Open the Components panel.

Click the UI Components Expand triangle.

Drag the TextArea component onto the Stage, and then select the component.

Open the Component Inspector, and then select the Parameters tab.

Select from the following TextArea parameters:

  • editable. When you click the value field, and select true, the field can be edited. If you select false, the field can be selected but not edited.

  • html. When you click the value field, select true, to allow HTML to control the formatting of the data. If you select false, the field cannot be modified using HTML.

  • text. Click the value field, and then enter the initial text that will appear in the TextArea component.

  • wordWrap. When you click the value field, and select true, the text typed by the visitor wraps in the TextArea box. If you select false, the text will not wrap.

  • maxChars. Click the value field, and then enter the maximum number of characters that can be typed into the TextArea component.

  • restrict. Click the value field, and then enter any characters that cannot be entered into the TextArea field.

  • enabled. When you click the value field, and select true, the field can be edited. If you select false, the field appears grayed out and is not selectable, or editable.

  • visible. When you click the value field, and select true, the field can be viewed. If you select false the field is invisible.

  • minHeight. Click the value field, and then enter a minimum height for the TextArea.

  • minWidth. Click the value field, and then enter a minimum width for the TextArea.

Click the Control menu, and then click Test Movie.

Visitors can type as much information as needed, and when the box fills up, scroll bars appear to the right of the box; allowing them to maneuver up and down through the document.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint