F > FScrollBar.setScrollContent

 

FScrollBar.setScrollContent

Availability

Flash Player 6.

Usage

myScrollBar.setScrollContent(target)

Parameters

target A reference to the text field for the scroll bar.

Returns

Nothing.

Description

Method; specifies the text field instance to which the scroll bar applies. This instance must be defined in the same Timeline and on the same level as the scroll bar. Calling this method overrides the Target Text Field parameter value set during authoring. Passing undefined for the target parameter disassociates the scroll bar from the text field.

Example

The following code attaches scrollText1 to the text field with the instance name textField1.

scrollText1.setScrollContent("textField1");