Click here to Skip to main content
13,045,657 members (67,396 online)
Rate this:
Please Sign up or sign in to vote.
Hello friends,

I am using SpinnerList in my applicaiton and by default it has a vertical layout. But I have a requirement of Horizontal SpinnerList.

I tried rotation but that was not enough.

   <s:SpinnerListContainer direction="ltr"  autoLayout="true">
       <s:SpinnerList id="titleSpinner" textAlign="center" >

Please guide me
Posted 25-May-12 21:28pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Hello I found the solution. There no horizontal Spinner List. Therefore need to make a control.

<s:Scroller id="scrllr"
            <s:HGroup id="hg" gap="20"
                      paddingTop="5" paddingRight="5" paddingBottom="5" paddingLeft="5">
                <s:Label text="First" color="White"
                <s:Label text="Second" color="White"
                     focusIn="textinput_focusInHandler(event)" />
                <s:Label text="Third" color="White"
                     focusIn="textinput_focusInHandler(event)" />
                <s:Label text="Fourth" color="White"
                     focusIn="textinput_focusInHandler(event)" />
                <s:Label text="Fifth" color="White"
                     focusIn="textinput_focusInHandler(event)" />
                <s:Label text="Sixth" color="White"
                     focusIn="textinput_focusInHandler(event)" />

protected function textinput_focusInHandler(evt:FocusEvent):void
                var idx:int = hg.getElementIndex( as IVisualElement);
                var lay:HorizontalLayout =  hg.layout as HorizontalLayout;
                    lay.horizontalScrollPosition +=lay.getScrollPositionDeltaToElement(idx).y;

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 28 May 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100