Access keys

Scroller

Kind of class: class
Inherits from: none
Version: 1.04
Author: Jeroen Wijering
Classpath: com.jeroenwijering.utils.Scroller
File last modified: Monday, 20 November 2006, 17:14:22
Manages scrolling of a designated MovieClip, either automatic or through a scrollbar.
Example:
var myScroller:Scroller = new com.jeroenwijering.utils.Scroller(myMovie,myMask);
myscroller.scrollTo(200);

Summary

Constructor
Instance methods
Event handlers

Constructor

Scroller

function Scroller (
tgt:MovieClip, msk:MovieClip, asc:Boolean, fcl:Number, hcl:Number)
Sets up scrolling behaviour and scrollbar
Parameters:
tgt:
MovieClip that should be masked
msk:
Movieclip that shoulld be used as mask
asc:
(optional) Boolean for using autoscroll
fcl:
(optional) scrollbar color
hcl:
(optional) scrollbar rollover color

Instance methods

scrollTo

function scrollTo (
yps:Number) : Void
Scroll the MovieClip to a given Y position.
Parameters:
yps:
The y position the clip should scroll to.

Event handlers

onMouseWheel

function onMouseWheel (
delta) : Void
Set use of mousewheel to scroll playlist.