Set min/max scroll position for ScrollBar
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"> <mx:Script> import mx.events.ScrollEvent; [Bindable] private var scrollPos:Number; private function scrollHandler(event:ScrollEvent):void { scrollPos = event.position; } </mx:Script> <mx:Label id="scrollLabel" fontSize="18" fontWeight="bold" text="Current scroll position: {scrollPos}"/> <mx:HScrollBar id="myScrollBar" width="300" minScrollPosition="0" maxScrollPosition="300" pageSize="100" scroll="scrollHandler(event)"/> </mx:Application>