2 Replies Latest reply on Mar 26, 2010 9:33 AM by Shongrunden

    Move a scroller with code

    JockMahon

      I have a tabBar that i have put in a scroller, now i want to put two buttons

      outside the scroller so that if the tabBar becomes too big then the user can press the buttons to

      scroll the tabBar across. i don't know how to move the position of the scroller though

       

      so on the click of the button i need to to see a property of the scroller or its scroll bars ?

       

       

              <s:HGroup>
              <s:Scroller  id="sd" width="200" horizontalScrollPolicy="off"  >
                  <s:HGroup>
                      <s:TabBar id="tabs" left="8" y="2" dataProvider="{vs}"/>
                  </s:HGroup>
              </s:Scroller>
              <s:Button label="< />
              <s:Button label=">"/>
              </s:HGroup>