Using Components > The ScrollBar component > ScrollBar parameters |  |

ScrollBar parameters

You can set the following parameters for each scroll bar instance in your Flash document using the Parameters tab on the Property inspector or the Component Parameters panel.

Horizontal specifies whether the scroll bar is horizontal (`true`) or vertical (`false`). If you change the Horizontal parameter for a ScrollBar component in the Property inspector or Component Parameters panel, the ScrollBar component will have the updated orientation in the Macromedia Flash Player, but the orientation change will not be displayed in the Macromedia Flash MX authoring environment.

Target Text Field is a string specifying the instance name of the text field for the scroll bar. This parameter is automatically filled in with the instance name of the text field when the scroll bar snaps to the text field on the Stage. Changing or deleting this parameter disassociates the scroll bar from the text field on the Stage. You use the `FScrollBar.setScrollTarget` method to specify this parameter at runtime.

You can set additional options and functionality for scroll bar instances using the methods of the FScrollBar (component). Some of the methods of the FScrollBar component are not recommended for use with scroll bars attached to text fields.