<?xml version="1.0"?>
<!-- controls\bar\SBarSimple.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>

     <mx:Script>
        <![CDATA[

            import mx.events.ScrollEvent;

            // Event handler function to display the scroll location.
            private function myScroll(event:ScrollEvent):void {
                showPosition.text = "VScrollBar properties summary:" +
'\n' +
                    "------------------------------------" + '\n' +
                    "Current scroll position: " +
                    event.currentTarget.scrollPosition  + '\n' +
                    "The maximum scroll position: " +
                    event.currentTarget.maxScrollPosition + '\n' +
                    "The minimum scroll position: " +
                    event.currentTarget.minScrollPosition;
            }
        ]]>
    </mx:Script>

    <mx:Label
        width="100%"
        color="blue"
        text="Click on the ScrollBar control to view its properties."/
>

    <mx:VScrollBar id="bar"
        height="100%"
        minScrollPosition="0"
        maxScrollPosition="{this.width - 20}"
        lineScrollSize="50"
        pageScrollSize="100"
        repeatDelay="1000"
        repeatInterval="500"
        scroll="myScroll(event);"/>

    <mx:TextArea id="showPosition"
        height="100%" width="100%"
        color="blue"/>
</mx:Application>

On Feb 23, 10:26 am, "Flexian_NGL ,@Bangalore" <chich...@gmail.com>
wrote:
> yes, you can add scrollbar as an separate component in mxml.
>
> --
> Thanks & Regards
> GK
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to flex_india@googlegroups.com
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to