Scrollpane.hpagescrollsize - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Example
This example creates a ScrollPane instance called
property to scroll 100 pixels when the user clicks an arrow on the
hLineScrollSize
horizontal scroll bar.
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";
// Scroll 100 pixels when clicking on horizontal bar arrows.
my_sp.hLineScrollSize = 100;

ScrollPane.hPageScrollSize

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
scrollPaneInstance.hPageScrollSize
Description
Property; the number of pixels to move the content when the track in the horizontal scroll bar
is clicked. The default value is 20.
Example
This example creates a ScrollPane instance called
property to scroll 100 pixels when the user clicks the track in the
hPageScrollSize
horizontal scroll bar.
1110
ScrollPane component
, loads it with an image, and sets the
my_sp
, loads it with an image, and sets the
my_sp

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents