MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 815

Components language reference
Table of Contents

Advertisement

Example
The following example disables the vertical scroll bar for a list:
var my_list:mx.controls.List;
my_list.setSize(200, 60);
my_list.rowCount = 4;
my_list.vScrollPolicy = "off";
my_list.addItem({data:"flash", label:"Flash"});
my_list.addItem({data:"flex", label:"Flex"});
my_list.addItem({data:"coldfusion", label:"ColdFusion"});
my_list.addItem({data:"dreamweaver", label:"Dreamweaver"});
my_list.addItem({data:"fireworks", label:"Fireworks"});
my_list.addItem({data:"contribute", label:"Contribute"});
my_list.addItem({data:"breeze", label:"Breeze"});
var listListener:Object = new Object();
listListener.scroll = function(evt_obj:Object) {
trace("my_list.vPosition = " + my_list.vPosition);
}
my_list.addEventListener("scroll", listListener);
You can still create scrolling by using
, or by using the mouse or keyboard.
List.vPosition
See also
List.vPosition
List.vScrollPolicy
811

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?

This manual is also suitable for:

Flash 8

Table of Contents