xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
import mx.events.ScrollEvent;
// Event handler function to display the scroll location.
private function myScroll():void {
showPosition.text = "VScrollBar properties summary:" + '\n' +
"------------------------------------" + '\n' +
"Current scroll position: " +
bar.value + '\n' +
"The maximum scroll position: " +
bar.maximum + '\n' +
"The minimum scroll position: " +
bar.minimum;
}
text="Click on the ScrollBar control to view its properties." />
maximum="{this.width - 20}" stepSize="50" pageSize="100"
repeatDelay="1000" repeatInterval="500" change="myScroll();" />