ScrollBar
| Kind of class: | class |
|---|---|
| Inherits from: | UIComponent < UIObject < MovieClip |
| Known subclasses: | |
| Classpath: | mx.controls.scrollClasses.ScrollBar |
| File last modified: | Tuesday, 18 December 2007, 15:44:38 |
a window with a title bar, caption and optional close button
The title bar can be used to drag the window to a new location.
The title bar can be used to drag the window to a new location.
Summary
Constructor
Class properties
- symbolName : String
- symbolOwner : Object
- symbolOwner : Object
- skinIDTrack : Number
- skinIDTrackOver : Number
- skinIDTrackDown : Number
- skinIDUpArrow : Number
- skinIDDownArrow : Number
- skinIDThumb : Number
- mergedClipParameters : Boolean
Class properties inherited from UIComponent
Class properties inherited from UIObject
Instance properties
- className : String
- name of this class
- minPos : Number
- maxPos : Number
- pageSize : Number
- largeScroll : Number
- smallScroll : Number
- _scrollPosition : Number
- scrollTrackName : String
- symbol name of skin element for the scroll track
- scrollTrackOverName : String
- symbol name of skin element for the scroll track when mouse is over it
- scrollTrackDownName : String
- symbol name of skin element for the scroll track when pressed
- upArrowName : String
- symbol name of skin element for the disabled state of the upArrow button
- upArrowUpName : String
- symbol name of skin element for the up state of the upArrow button
- upArrowOverName : String
- symbol name of skin element for the over state of the upArrow button
- upArrowDownName : String
- symbol name of skin element for the down state of the upArrow button
- downArrowName : String
- symbol name of skin element for the disabled state of the downArrow button
- downArrowUpName : String
- symbol name of skin element for the up state of the downArrow button
- downArrowOverName : String
- symbol name of skin element for the over state of the downArrow button
- downArrowDownName : String
- symbol name of skin element for the down state of the downArrow button
- thumbTopName : String
- symbol name of skin element for the top cap of the thumb in the up state
- thumbMiddleName : String
- symbol name of skin element for the moddle piece of the thumb in the up state
- thumbBottomName : String
- symbol name of skin element for the bottom cap of the thumb in the up state
- thumbGripName : String
- symbol name of skin element for the grip of the thumb in the up state
- idNames : Array
- initializing : Boolean
- isScrolling : Boolean
- scrollTrack_mc : SkinElement
- scrollThumb_mc : ScrollThumb
- upArrow_mc : SimpleButton
- downArrow_mc : SimpleButton
- boundingBox_mc : MovieClip
- minMode : String
- maxMode : String
- minusMode : String
- plusMode : String
- scrolling
- scrollHandler : Function
- scrollPosition : Number
- the current scroll position
- pageScrollSize : Number
- the amount to move when the track is pressed
- lineScrollSize (sScroll:Number)
- the amount to move when an arrow button is pressed
- virtualHeight : Number
Instance properties inherited from UIComponent
Instance properties inherited from UIObject
__height __onUnload __width _color _endInit _id _maxHeight _maxWidth _minHeight _minWidth _preferredHeight _preferredWidth _tf _topmost addEventListener bottom buildDepthTable changeColorStyleInChildren changeTextStyleInChildren childrenCreated className clipParameters color createAccessibilityImplementation createChildAtDepth createClassChildAtDepth createEvent dispatchEvent embedFonts findNextAvailableDepth fontFamily fontSize fontStyle fontWeight handleEvent height idNames ignoreClassStyleDeclaration initProperties invalidateFlag left lineColor lineWidth marginLeft marginRight methodTable minHeight minWidth notifyStyleChangeInChildren removeEventListener right scaleX scaleY setStyle stylecache styleName tabEnabled textAlign textDecoration textIndent tfList top validateNow visible width x y
Class methods
Class methods inherited from UIObject
Instance methods
- init (Void) : Void
- createThumb (Void) : Void
- setScrollProperties (pSize:Number, mnPos:Number, mxPos:Number, ls:Number) : Void
- resizes the thumb, enables/disables arrows if there is stuff to scroll
- setEnabled (enabledFlag:Boolean) : Void
- draw (Void) : Void
- size (Void) : Void
- dispatchScrollEvent (detail:String) : Void
- isScrollBarKey (k:Number) : Boolean
- scrollIt (inc:String, mode:Number) : Void
- startTrackScroller (Void) : Void
- scrollInterval (inc:String, mode:Number) : Void
- trackScroller (Void) : Void
- dispatchScrollChangedEvent (Void) : Void
- stopScrolling (Void) : Void
- releaseScrolling (Void) : Void
- trackOver (Void) : Void
- trackOut (Void) : Void
Instance methods inherited from UIObject
__getTextFormat _createChildren _getTextFormat cancelAllDoLaters constructObject createChildren createClassObject createEmptyObject createLabel createObject createSkin destroyObject doLater doLaterDispatcher draw drawRect getClassStyleDeclaration getMinHeight getMinWidth getSkinIDName getStyle getStyleName init initFromClipParameters invalidate invalidateStyle move redraw setColor setMinHeight setMinWidth setSize setSkin setVisible size
Event handlers
- onUpArrow (Void) : Void
- onDownArrow (Void) : Void
- onScrollChanged (Void) : Void
Event handlers inherited from UIComponent
Constructor
ScrollBar
function ScrollBar (
)
Class properties
mergedClipParameters
static mergedClipParameters:Boolean = UIObject.mergeClipParameters(ScrollBar.prototype.clipParameters, UIComponent.prototype.clipParameters)
(read)
skinIDDownArrow
static skinIDDownArrow:Number = 4
(read)
skinIDThumb
static skinIDThumb:Number = 5
(read)
skinIDTrack
static skinIDTrack:Number = 0
(read)
skinIDTrackDown
static skinIDTrackDown:Number = 2
(read)
skinIDTrackOver
static skinIDTrackOver:Number = 1
(read)
skinIDUpArrow
static skinIDUpArrow:Number = 3
(read)
symbolName
static symbolName:String = "ScrollBar"
(read)
symbolOwner
static symbolOwner:Object = ScrollBar
(read)
symbolOwner
static symbolOwner:Object = mx.core.UIComponent
(read)
Instance properties
_scrollPosition
_scrollPosition:Number = 0
(read)
boundingBox_mc
boundingBox_mc:MovieClip
(read)
className
className:String = "ScrollBar"
(read)
name of this class
downArrow_mc
downArrowDownName
downArrowDownName:String = "ScrollDownArrowDown"
(read)
symbol name of skin element for the down state of the downArrow button
downArrowName
downArrowName:String = "BtnDownArrow"
(read)
symbol name of skin element for the disabled state of the downArrow button
downArrowOverName
downArrowOverName:String = "ScrollDownArrowOver"
(read)
symbol name of skin element for the over state of the downArrow button
downArrowUpName
downArrowUpName:String = "ScrollDownArrowUp"
(read)
symbol name of skin element for the up state of the downArrow button
idNames
idNames:Array = new Array("scrollTrack_mc", "scrollTrackOver_mc", "scrollTrackDown_mc", "upArrow_mc", "downArrow_mc")
(read)
initializing
initializing:Boolean = true
(read)
isScrolling
isScrolling:Boolean
(read)
largeScroll
largeScroll:Number = 0
(read)
lineScrollSize
lineScrollSize
(read,write)
the amount to move when an arrow button is pressed
maxMode
maxMode:String
(read)
maxPos
maxPos:Number = 0
(read)
minMode
minMode:String
(read)
minPos
minPos:Number = 0
(read)
minusMode
minusMode:String
(read)
pageScrollSize
pageScrollSize:Number
(read,write)
the amount to move when the track is pressed
pageSize
pageSize:Number = 0
(read)
plusMode
plusMode:String
(read)
scrollHandler
scrollHandler:Function
(read)
scrolling
scrolling
(read)
scrollPosition
scrollPosition:Number
(read,write)
the current scroll position
scrollThumb_mc
scrollTrack_mc
scrollTrackDownName
scrollTrackDownName:String = ""
(read)
symbol name of skin element for the scroll track when pressed
scrollTrackName
scrollTrackName:String = "ScrollTrack"
(read)
symbol name of skin element for the scroll track
scrollTrackOverName
scrollTrackOverName:String = ""
(read)
symbol name of skin element for the scroll track when mouse is over it
smallScroll
smallScroll:Number = 1
(read)
thumbBottomName
thumbBottomName:String = "ScrollThumbBottomUp"
(read)
symbol name of skin element for the bottom cap of the thumb in the up state
thumbGripName
thumbGripName:String = "ScrollThumbGripUp"
(read)
symbol name of skin element for the grip of the thumb in the up state
thumbMiddleName
thumbMiddleName:String = "ScrollThumbMiddleUp"
(read)
symbol name of skin element for the moddle piece of the thumb in the up state
thumbTopName
thumbTopName:String = "ScrollThumbTopUp"
(read)
symbol name of skin element for the top cap of the thumb in the up state
upArrow_mc
upArrowDownName
upArrowDownName:String = "ScrollUpArrowDown"
(read)
symbol name of skin element for the down state of the upArrow button
upArrowName
upArrowName:String = "BtnUpArrow"
(read)
symbol name of skin element for the disabled state of the upArrow button
upArrowOverName
upArrowOverName:String = "ScrollUpArrowOver"
(read)
symbol name of skin element for the over state of the upArrow button
upArrowUpName
upArrowUpName:String = "ScrollUpArrowUp"
(read)
symbol name of skin element for the up state of the upArrow button
virtualHeight
virtualHeight:Number
(read)
Instance methods
createThumb
function createThumb (
Void) : Void
dispatchScrollChangedEvent
function dispatchScrollChangedEvent (
Void) : Void
dispatchScrollEvent
function dispatchScrollEvent (
detail:String) : Void
isScrollBarKey
function isScrollBarKey (
k:Number) : Boolean
releaseScrolling
function releaseScrolling (
Void) : Void
scrollInterval
function scrollInterval (
inc:String,
mode:Number) : Void
scrollIt
function scrollIt (
inc:String,
mode:Number) : Void
setEnabled
function setEnabled (
enabledFlag:Boolean) : Void
setScrollProperties
function setScrollProperties (
pSize:Number,
mnPos:Number,
mxPos:Number,
ls:Number) : Void
resizes the thumb, enables/disables arrows if there is stuff to scroll
startTrackScroller
function startTrackScroller (
Void) : Void
stopScrolling
function stopScrolling (
Void) : Void
trackOut
function trackOut (
Void) : Void
trackOver
function trackOver (
Void) : Void
trackScroller
function trackScroller (
Void) : Void
Event handlers
onDownArrow
function onDownArrow (
Void) : Void
onScrollChanged
function onScrollChanged (
Void) : Void
onUpArrow
function onUpArrow (
Void) : Void