Constructors

Methods

MousePositionPanel class

com.reintroducing.ui.MousePositionPanel

 

 

 

Overview

Author

Matt Przybylski [http://www.reintroducing.com]

Version

1.0

Description

Creates a scrolling panel that allows for scrolling in the x or y axis depending on where the mouse pointer is within the panel.

Constructors

 

MousePositionPanel

Usage

var mpp:MousePositionPanel = new MousePositionPanel($holder, $mc, $mask, $axis, $moveType, $speed);

Description

Creates a new instance of the MousePositionPanel class.

Parameters

$holder
The movie clip (or timeline) that holds the content and mask clips
$mc
The movie clip to be scrolled
$mask
The movie clip that is used as the mask for the scrollable content area
$axis
A string value of either "x" or "y" that determines what axis the content is scrolled along
$moveType
A string, "withMouse" (moves with the mouse) or "againstMouse" (moves away from the mouse)
$speed
A number that represents how fast to scroll the clip

Methods

 

startPanel

Usage

mpp.startPanel();

Description

Starts the panel scrolling in the proper direction.

Returns

Nothing
 

stopPanel

Usage

mpp.stopPanel();

Description

Stops the panel from scrolling any further.

Returns

Nothing