List.hPosition

Availability

Flash Player 6.0.79.

Edition

Flash MX 2004.

Usage

listInstance.hPosition

Description

Property; scrolls the list horizontally to the number of pixels specified. You can't set hPosition unless the value of hScrollPolicy is "on" and the list has a maxHPosition that is greater than 0.

Example

The following example gets the horizontal scroll position of myList:

var scrollPos = myList.hPosition;

The following example sets the horizontal scroll position all the way to the left:

myList.hPosition = 0;