User Guide

466 Chapter 6: Components Dictionary
Description
Property; scrolls the list horizontally to the number of pixels specified. You cant 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;
List.hScrollPolicy
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
listInstance.hScrollPolicy
Description
Property; a string that determines whether 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: List.hScrollPolicy does not support the value "auto".
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
List.iconField
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
listInstance.iconField