List.hScrollPolicy

Availability

Flash Player 6.0.79.

Edition

Flash MX 2004.

Usage

listInstance.hScrollPolicy

Description

Property; a string that determines whether or not the horizontal scroll bar is displayed; the value can be "on" or "off". The default value is "off". The horizontal scroll bar does not measure text, you must set a maximum horizontal scroll position, see List.maxHPosition.

Note: The value "auto" is not supported for List.hScrollPolicy.

Example

The following code enables the list to scroll horizontally up to 200 pixels:

myList.hScrollPolicy = "on"; 
myList.Box.maxHPosition = 200;

See also

List.hPosition, List.maxHPosition