Components Flex

and " src="http://www.rntsoft.com/Code/FlexImages/CreateaScrollBarusingmxVScrollbarandmxHScrollBar.PNG"

        


    
        
        import mx.events.ScrollEvent;
        private function myScroll(event:ScrollEvent):void {
            showPosition.text = "Current scroll position: " + event.currentTarget.scrollPosition;
        }
      
    

            text="Click on the scroll bar to view its properties." />
                       minScrollPosition="0"
                   maxScrollPosition="{this.width - 20}" 
                   lineScrollSize="50"
                   pageScrollSize="100" 
                   repeatDelay="1000" 
                   repeatInterval="500"
                   scroll="myScroll(event);" />