<s:Scroller width="100%" height="100%"> <esri:Legend id="myLegend" width="350" height="400" respectCurrentMapScale="true" layers="{[legendLayers]}" map="{theMap}"/> </Scroller>
<s:VGroup id="legendGroup" width="100%" height="100%" visible="{layerBenthic.visible}"> <s:HGroup width="100%" horizontalAlign="center" paddingTop="10"> <s:VGroup width="100%" horizontalAlign="center"> <s:Label text="Layer Transparency"/> <s:HSlider id="toolAlpha" minimum="0" maximum="100" snapInterval="1" liveDragging="true" width="75%" change="changeTransparency()" value="100"/> </s:VGroup> </s:HGroup> <esri:Legend id="legendMap" map="{mapMain}" layers="{layerBenthic}" width="100%" height="100%" respectCurrentMapScale="true" x="10" /> </s:VGroup>