I am trying to change the visible index of a Scroller container on an event. The Scroller contains an HGroup with Images, so on an event I want to change which of the Images is visible in the Scroller by specifying an HGroup index. Is this possible?
Container code:
<s:Scroller id="test" includeIn="startState" x="53" y="20" width="170"
height="200" depth="2" scrollSnappingMode="leadingEdge">
<s:HGroup gap="0" width="170" height="200">
<s:Image id="BrigadeEmblem1" width="170" height="200" smooth="true"
smoothingQuality="high" source="assets/1st Stryker Brigade.png"
verticalAlign="middle"/>
<s:Image id="BrigadeEmblem4" width="170" height="200" smooth="true"
smoothingQuality="high" source="assets/4th Stryker Brigade.png"
verticalAlign="middle"/>
</s:HGroup>
</s:Scroller>
So, for example, if "BrigadeEmblem1" is visible in the Scroller, I want to programmatically change the visible image to "BrigadeEmblem4" if a specific event is heard.