Scrollpane.vlinescrollsize - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Example
This example creates a ScrollPane instance called
, loads it with an image, and sets the
my_sp
property to
, allowing the user to scroll by dragging the image within the
scrollDrag
true
scroll pane.
You first drag the ScrollPane component from the Components panel to the current
document's library and then add the following code to Frame 1:
/**
Requires:
- ScrollPane component in library
*/
this.createClassObject(mx.containers.ScrollPane, "my_sp", 10);
my_sp.setSize(360, 280);
System.security.allowDomain("http://www.helpexamples.com");
my_sp.contentPath = "http://www.helpexamples.com/flash/images/image1.jpg";
// Enable scrolling by dragging scroll pane.
my_sp.scrollDrag = true;

ScrollPane.vLineScrollSize

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
scrollPaneInstance.vLineScrollSize
Description
Property; the number of pixels to move the content in the display area when the user clicks a
scroll arrow in a vertical scroll bar. The default value is 5.
Example
The following example creates a ScrollPane instance called
, loads it with an image, and
my_sp
sets the
property to scroll 20 pixels when the user clicks an arrow on the
vLineScrollSize
vertical scroll bar.
ScrollPane.vLineScrollSize
1119

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents