DOScrollBar

Kind of class:public class
Package:com.trycatch.utils
Inherits from:EventDispatcher
Version:0.1
Author:Larry Reynolds
Classpath:com.trycatch.utils.DOScrollBar
File last modified:Tuesday, 26 May 2009, 17:25:22
Class description.
@langversion ActionScript 3.0@playerversion Flash 9.0
***STILL WORKING ON IT - NOT READY YET ********
Basic scrollbar utility for scrolling clips and sprites and shit. Ripped straight from the old school.

Since:
  • 28.05.2008

Summary


Constructor
  • DOScrollBar (target:DisplayObjectContainer, contentDO:DisplayObject, maskDO:DisplayObject, trackClip:Sprite = null, dragClip:Sprite = null, upClip:MovieClip = null, downClip:MovieClip = null, trackClipHeightOffset:Number = 0)
    • CONSTRUCTOR
Instance properties
Instance methods

Constructor

DOScrollBar

public function DOScrollBar (
target:DisplayObjectContainer, contentDO:DisplayObject, maskDO:DisplayObject, trackClip:Sprite = null, dragClip:Sprite = null, upClip:MovieClip = null, downClip:MovieClip = null, trackClipHeightOffset:Number = 0)

CONSTRUCTOR

Constants

CHECK_INTERVAL

public static const CHECK_INTERVAL = 5000
(read)

DOWN_PRESSED

public static const DOWN_PRESSED:Event = new Event("downPressed", true)
(read)

DRAG_PRESSED

public static const DRAG_PRESSED:Event = new Event("dragPressed", true)
(read)

HIDE_SCROLLBAR

public static const HIDE_SCROLLBAR:String = "hide_scrollbar"
(read)

SHOW_SCROLLBAR

public static const SHOW_SCROLLBAR:String = "show_scrollbar"
(read)

TRACK_PRESSED

public static const TRACK_PRESSED:Event = new Event("trackPressed", true)
(read)

UP_PRESSED

public static const UP_PRESSED:Event = new Event("upPressed", true)
(read)

Instance properties

contentDO

public contentDO:DisplayObject
(read,write)

See also:
  • * @default

contentHeight

public contentHeight:Number
(read)

contentWidth

public contentWidth:Number
(read,write)

contentX

public contentX:Number
(read,write)

contentY

public contentY:Number
(read,write)

downClip

public downClip:MovieClip
(read,write)

See also:
  • * @default

dragClip

public dragClip:Sprite
(read,write)

See also:
  • * @default

enabled

public enabled:Boolean
(read,write)

See also:
  • * @default

height

public height:Number
(read,write)

See also:
  • * @default

hideWhenDisabled

public hideWhenDisabled:Boolean
(read,write)

See also:
  • * @default true

isHorizontal

public isHorizontal:Boolean
(read,write)

See also:
  • * @default

maskDO

public maskDO:DisplayObject
(read,write)

See also:
  • * @default

scrollPosition

public scrollPosition:Number
(read,write)

See also:
  • * @default

scrollStep

public scrollStep:Number
(read,write)

See also:
  • * @default

snapToPixel

public snapToPixel:Number
(read,write)

See also:
  • * @default

target

public target:DisplayObjectContainer
(read,write)

PUBLIC VARIABLES

trackClip

public trackClip:Sprite
(read,write)

See also:
  • * @default

trackClipHeightOffset

public trackClipHeightOffset:Number
(read,write)

tweenSpeed

public tweenSpeed:Number
(read,write)

See also:
  • * @default

tweenType

public tweenType:String
(read,write)

See also:
  • * @default

upClip

public upClip:MovieClip
(read,write)

See also:
  • * @default

useTweening

public useTweening:Boolean
(read,write)

See also:
  • * @default

width

public width:Number
(read,write)

See also:
  • * @default

Instance methods

disable

public function disable (
) : void

enable

public function enable (
) : void

offsetScroll

public function offsetScroll (
delta:Number) : void

reDraw

public function reDraw (
) : void

PUBLIC METHODS

scrollTo

public function scrollTo (
n:Number) : void

scrollToPercent

public function scrollToPercent (
perc:Number) : void

shouldEnable

public function shouldEnable (
) : Boolean