0 Replies Latest reply on Jan 14, 2011 7:16 PM by markdeevid

    images in scroller - how to snap/dock

    markdeevid

      HI

      I have a simple scroller containing an Hgroup of images (as below)

      I need the images in this group to a 'snap' to the center of the scroller as they come through...(like how the symbols on a slot machine align on center)

      as this container sits on top of another (also like a slot machine)

       

      any help is appreciated

      thanks

       

      md

       

      <s:Scroller x="312.1" y="120" width="400" height="50" alignmentBaseline="ideographicBottom" >

      <s:HGroup id="hgroup" clipAndEnableScrolling="true" gap="200"

      horizontalScrollPosition="

      900" paddingLeft="150" paddingRight="150">

      <s:Image source="assets/h1.png"/>

      <s:Image source="assets/h2.png"/>

      <s:Image source="assets/h1.png"/>

      <s:Image source="assets/h2.png"/>

      <s:Image source="assets/h1.png"/>

      <s:Image source="assets/h2.png"/>

      <s:Image source="assets/h1.png"/>

      </s:HGroup>

      </s:Scroller>