FullScreenScrollbar

Kind of class: public class
Package:
Inherits from:
  • Sprite
Classpath: com.johnpolacek.ui.FullScreenScrollbar
File last modified: Tuesday, 15 February 2011, 19:47:18

Summary

Constructor
  • FullScreenScrollbar (scrubberColor:uint = 0xFFFFFF, scrubberAlpha:Number = .5, tc:uint = 0x000000, ta:Number = .25, t:int = 16, sh:int = 80)
Instance properties
  • percent : Number
    • Percent scrolled (0=none 1=max)
  • clickPercent : Number
    • Percent scrolled when track is clicked
  • isTweening : Boolean
    • When content is tweening, block clicks/scrubbing events
  • isActive : Boolean
    • Toggled by transitionIn() and transitionOut()
  • isKeyboardEnabled : Boolean
    • If true, listens for up/down keyboard commands.
Instance methods

Constructor

FullScreenScrollbar

function FullScreenScrollbar(scrubberColor:uint = 0xFFFFFF, scrubberAlpha:Number = .5, tc:uint = 0x000000, ta:Number = .25, t:int = 16, sh:int = 80)
Parameters
 

Instance properties

clickPercent

clickPercent:Number = .2(read,write)

Percent scrolled when track is clicked

isActive

isActive:Boolean = false(read,write)

Toggled by transitionIn() and transitionOut()

isKeyboardEnabled

isKeyboardEnabled:Boolean = true(read,write)

If true, listens for up/down keyboard commands.

isTweening

isTweening:Boolean = false(read,write)

When content is tweening, block clicks/scrubbing events

percent

percent:Number(read,write)

Percent scrolled (0=none 1=max)

Instance methods

disableKeyCommands

function disableKeyCommands() : void

doScroll

function doScroll(p:Number) : void

Initiates scrolling

Parameters
p:Sets percent to scroll to

enableKeyCommands

function enableKeyCommands() : void

onStageResize

function onStageResize(event:Event) : void

setClickPercent

function setClickPercent(cp:Number) : void

Assigns percentage scrolled on a single track click (clickPercent value)

Parameters
cp:Sets clickPercent value

transitionIn

function transitionIn() : void

transitionOut

function transitionOut() : void