The Scroller control is part of the Spark component set.
There is no MX equivalent.
The Scroller control
contains a pair of scroll bars and a viewport. A viewport displays
a rectangular subset of the area of a component, rather than displaying the
entire component. You can use the Scroller control to make any container that
implements the IViewport interface,
such as Group, scrollable.
The scroll bars control the viewport's vertical and horizontal
scroll position. They reflect the viewport's actual size and content
size. Scroll bars are displayed according to the Scroller's vertical
and horizontal scroll policy properties. By default, the policy
is set to "auto". This value indicates that scroll
bars are displayed when the content within a viewport is larger
than the actual size of the viewport.
For more information on using this control with Spark containers,
see Scrolling Spark containers.
Creating a Scroller control
You define a Scroller control in MXML by using the <s:Scroller> tag.
Specify an id value if you intend to refer to a
component elsewhere in your MXML, either in another tag or in an
In the following example, the Group container myGroup is
the viewport for this scroller. The content in the viewport is the
loaded image. The layout of the application is controlled by the
Sizing a Scroller control
You can size the width and height of the Scroller control
directly or size the viewport container. The VScrollBar and HScrollBar
classes bind to the viewport's scroll position and actual and content
Skinning a Scroller control
The Scroller skin provides scroll bars and manages layout
according to the verticalScrollPolicy and horizontalScrollPolicy
properties in the Scroller class.
The Scroller skin layout cannot be changed because it must handle
the vertical and horizontal scroll policies. Scroller skins can
only provide replacement scroll bars.