ScrollView
| Kind of class: | class |
|---|---|
| Inherits from: | View < UIComponent < UIObject < MovieClip |
| Known subclasses: | |
| Classpath: | mx.core.ScrollView |
| File last modified: | Tuesday, 18 December 2007, 15:44:38 |
Component metadata:
| Event | "scroll" |
|---|
Summary
Constructor
Class properties
- symbolName : String
- symbolOwner : Object
- version : String
Class properties inherited from View
Class properties inherited from UIComponent
Class properties inherited from UIObject
Instance properties
- className : String
- name of this class
- hScroller : ScrollBar
- vScroller : ScrollBar
- mask_mc : MovieClip
- __vScrollPolicy : String
- __hScrollPolicy : String
- __vPosition : Number
- __hPosition : Number
- numberOfCols : Number
- rowC : Number
- columnWidth : Number
- rowH : Number
- heightPadding : Number
- widthPadding : Number
- oldRndUp : Number
- __maxHPosition : Number
- viewableRows : Number
- viewableColumns : Number
- propsInited : Boolean
- scrollAreaChanged : Boolean
- invLayout : Boolean
- specialHScrollCase : Boolean
- __viewMetrics : Object
- MASK_DEPTH : Number
- owner : MovieClip
- hScrollPolicy : String
- vScrollPolicy : String
- vScrollPolicy (policy:Object)
- hPosition : Number
- vPosition : Number
- maxVPosition : Number
- maxHPosition : Number
Instance properties inherited from View
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
- getHScrollPolicy (Void)
- setHScrollPolicy (policy) : Void
- getVScrollPolicy (Void)
- setVScrollPolicy (policy) : Void
- getHPosition (Void) : Number
- setHPosition (pos:Number) : Void
- getVPosition (Void) : Number
- setVPosition (pos:Number) : Void
- getMaxHPosition (Void) : Number
- setMaxHPosition (pos:Number) : Void
- setScrollProperties (colCount:Number, colWidth:Number, rwCount:Number, rwHeight:Number, hPadding:Number, wPadding:Number) : Void
- set the parameters for scrolling
- getViewMetrics (Void) : Object
- get the thickness of the edges of the object taking into account the border and scrollbars if visible
- doLayout (Void) : Void
- createChild (id, name:String, props:Object) : MovieClip
- init (Void) : Void
- __onMouseWheel (delta:Number, scrollTarget:MovieClip) : Void
- createChildren (Void) : Void
- invalidate (Void) : Void
- mark component so it will get drawn later
- draw (Void) : Void
- size (Void) : Void
- scrollProxy (docObj:Object) : Void
- setEnabled (v:Boolean) : Void
- childLoaded (obj:MovieClip) : Void
Instance methods inherited from View
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
Constructor
ScrollView
function ScrollView (
)
Class properties
symbolName
static symbolName:String = "ScrollView"
(read)
symbolOwner
static symbolOwner:Object = ScrollView
(read)
version
static version:String = "2.0.2.127"
(read)
Instance properties
__hPosition
__hPosition:Number = 0
(read)
__hScrollPolicy
__hScrollPolicy:String = "off"
(read)
__maxHPosition
__maxHPosition:Number
(read)
__viewMetrics
__viewMetrics:Object
(read)
__vPosition
__vPosition:Number = 0
(read)
__vScrollPolicy
__vScrollPolicy:String = "auto"
(read)
className
className:String = "ScrollView"
(read)
name of this class
columnWidth
columnWidth:Number = 1
(read)
heightPadding
heightPadding:Number = 0
(read)
hPosition
hPosition:Number
(read,write)
hScroller
hScrollPolicy
hScrollPolicy:String
(read,write)
invLayout
invLayout:Boolean
(read)
MASK_DEPTH
MASK_DEPTH:Number = 10000
(read)
mask_mc
mask_mc:MovieClip
(read)
maxHPosition
maxHPosition:Number
(read,write)
maxVPosition
maxVPosition:Number
(read)
numberOfCols
numberOfCols:Number = 0
(read)
oldRndUp
oldRndUp:Number
(read)
owner
owner:MovieClip
(read)
propsInited
propsInited:Boolean
(read)
rowC
rowC:Number = 0
(read)
rowH
rowH:Number = 0
(read)
scrollAreaChanged
scrollAreaChanged:Boolean
(read)
specialHScrollCase
specialHScrollCase:Boolean
(read)
viewableColumns
viewableColumns:Number
(read)
viewableRows
viewableRows:Number
(read)
vPosition
vPosition:Number
(read,write)
vScroller
vScrollPolicy
vScrollPolicy:String
(read)
vScrollPolicy
vScrollPolicy
(write)
widthPadding
widthPadding:Number = 0
(read)
Instance methods
__onMouseWheel
function __onMouseWheel (
delta:Number,
scrollTarget:MovieClip) : Void
childLoaded
function childLoaded (
obj:MovieClip) : Void
Parameters:
obj:
the loaded child
Overrides:
doLayout
function doLayout (
Void) : Void
getHPosition
function getHPosition (
Void) : Number
getHScrollPolicy
function getHScrollPolicy (
Void)
getMaxHPosition
function getMaxHPosition (
Void) : Number
getViewMetrics
function getViewMetrics (
Void) : Object
get the thickness of the edges of the object taking into account the border and scrollbars if visible
Returns:
- object with left, right, top and bottom edge thickness in pixels
getVPosition
function getVPosition (
Void) : Number
getVScrollPolicy
function getVScrollPolicy (
Void)
scrollProxy
function scrollProxy (
docObj:Object) : Void
setEnabled
function setEnabled (
v:Boolean) : Void
setHPosition
function setHPosition (
pos:Number) : Void
setHScrollPolicy
function setHScrollPolicy (
policy) : Void
setMaxHPosition
function setMaxHPosition (
pos:Number) : Void
setScrollProperties
function setScrollProperties (
colCount:Number,
colWidth:Number,
rwCount:Number,
rwHeight:Number,
hPadding:Number,
wPadding:Number) : Void
set the parameters for scrolling
Parameters:
colCount:
number of units to scroll horizontally
colWidth:
width in pixels of each of those units
rwCount :
number of untis to scroll vertically
rwHeight:
height in pixels of each of those units
hPadding:
pixels on the left edge that are not scrolled (for row headers)
wpadding:
pixels on the top edge that are not scrolled (for column headers)
setVPosition
function setVPosition (
pos:Number) : Void
setVScrollPolicy
function setVScrollPolicy (
policy) : Void
Event handlers
onScroll
function onScroll (
docObj:Object) : Void