User Guide
UIScrollBar component 841
UIScrollBar.setScrollTarget()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
scrollBarInstance.setScrollTarget(textInstance)
Parameters
textInstance
The text field to assign to the scroll bar.
Description
Method; assigns a UIScrollBar component to a text field instance. If you need to associate a text
field and a UIScrollBar component at runtime, use this method.
Example
The following example assigns the UIScrollBar instance named myScrollBar to the text field
instance named
txt. The scroll bar is oriented vertically.
myScrollBar.setScrollTarget(txt);
The following example assigns the UIScrollBar instance named myScrollBar to the text field
instance named
task_list. The scroll bar is oriented vertically.
myScrollBar.setScrollTarget(task_list, true);
UIScrollBar._targetInstanceName
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
scrollBarInstance._targetInstanceName
Description
Property; indicates the instance name of the text field associated with a UIScrollBar component.
This property can be tested and set. However, it should not be used to create an association
between a text field and a scroll bar. Use
UIScrollBar.setScrollTarget() instead.
Example
The following example gets the name of the text field instance attached to the scroll bar
MyScrollBar and sets its border to true:
var theName = myScrollBar._targetInstanceName;
theName.border = true;