List.hscrollpolicy - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

var listListener:Object = new Object();
listListener.scroll = function (evt_obj:Object) {
trace("my_list.hPosition = " + my_list.hPosition);
}
my_list.addEventListener("scroll", listListener);

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
or
. The default value is
. The horizontal scroll bar does not measure text;
"on"
"off"
"off"
you must set a maximum horizontal scroll position (see
).
List.maxHPosition
does not support the value
.
List.hScrollPolicy
"auto"
Example
The following code enables the list to scroll horizontally up to 200 pixels. To try this code,
drag a List component to the Stage and give it the instance name my_list. Add the following
code to Frame 1 in the timeline:
var my_list:mx.controls.List;
my_list.setSize(150, 100);
my_list.hScrollPolicy = "on";
my_list.maxHPosition = 200;
my_list.addItem({data:'flash', label:'Flash'});
my_list.addItem({data:'dreamweaver', label:'Dreanweaver'});
my_list.addItem({data:'coldfusion', label:'ColdFusion'});
See also
,
List.hPosition
List.maxHPosition
List.hScrollPolicy
783

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents