Scrollpane.hlinescrollsize - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Example
This example creates a ScrollPane instance called
with a
loadListener
getBytesLoaded() getBytesTotal()
Output panel.
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);
var loadListener:Object = new Object();
loadListener.progress = function(evt_obj:Object) {
trace(my_sp.getBytesLoaded() + " of " + my_sp.getBytesTotal() + " bytes
loaded.");
};
my_sp.addEventListener("progress", loadListener);
System.security.allowDomain("http://www.helpexamples.com");
my_sp.contentPath = "http://www.helpexamples.com/flash/images/image1.jpg";
See also
ScrollPane.getBytesLoaded()

ScrollPane.hLineScrollSize

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
scrollPaneInstance.hLineScrollSize
Description
Property; the number of pixels to move the content when an arrow in the horizontal scroll bar
is clicked. The default value is 5.
event handler. The event handler calls the
progress
functions to display the progress of the load in the
and defines a listener object called
my_sp
ScrollPane.hLineScrollSize
1109

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents