User Guide

UIScrollBar component 833
UIScrollBar class
Inheritance MovieClip > UIObject class > UIComponent class > ScrollBar > UIScrollBar
ActionScript Class Name mx.controls.UIScrollBar
The properties of the UIScrollBar class let you adjust the scroll position and the amount of
scrolling that occurs when the user clicks the scroll arrows or the scroll track.
Unlike most other components, events are broadcast when the mouse button is pressed and
continue broadcasting until the button is released.
Each component class has a
version property, which is a class property. Class properties are
available only on the class itself. The
version property returns a string that indicates the version
of the component. To access this property, use the following code:
trace(mx.controls.UIScrollBar.version);
Note: The code trace(myUIScrollBarInstance.version); returns undefined.
Method summary for the UIScrollBar class
The following table lists the method of the UIScrollBar class.
Methods inherited from the UIObject class
The following table lists the methods the UIScrollBar class inherits from the UIObject class.
When calling these methods from the UIScrollBar object, use the form
UIScrollBarInstance.methodName.
Method Description
UIScrollBar.setScrollProperties() Sets the scroll range of the scroll bar and the size of the text
field that the scroll bar is attached to.
UIScrollBar.setScrollTarget() Assigns the scroll bar to a text field.
Method Description
UIObject.createClassObject() Creates an object on the specified class.
UIObject.createObject() Creates a subobject on an object.
UIObject.destroyObject() Destroys a component instance.
UIObject.doLater() Calls a function when parameters have been set in the
Property and Component inspectors.
UIObject.getStyle() Gets the style property from the style declaration or object.
UIObject.invalidate() Marks the object so it will be redrawn on the next frame
interval.
UIObject.move() Moves the object to the requested position.
UIObject.redraw() Forces validation of the object so it is drawn in the current
frame.
UIObject.setSize() Resizes the object to the requested size.