Andrew, I don't know what the issue is YET but I am now looking into it. Hopefully I can resolve it soon.Thanks for letting me know.
<viewer:WidgetTemplate id="wTemplate" height="300" skinClass="com.esri.viewer.skins.WidgetTemplateSkin" width="380"> <s:BorderContainer borderVisible="false" backgroundColor="#ffffff" backgroundAlpha="0.6" height="100%" width="100%"> <s:VGroup id="showTOC" visible="true" gap="8" height="100%" paddingTop="4" width="100%"> <s:HGroup gap="10" verticalAlign="middle" visible="{alphaVis}" includeInLayout="{alphaVis}"> <s:Label styleName="WidgetText" text="Layer Visibility" paddingLeft="6"/> <mx:Image source="{alphaIcon}" width="20" height="20" toolTip="{AlphaToolTip}"/> <s:HSlider id="slider" minimum="0" maximum="1" change="setLayerAlpha()" dataTipFormatFunction="sldrDataTipFormatter" liveDragging="true" snapInterval="0.001" skinClass="widgets.TOC.alphaSliderSkin" enabled="{layerIsSelected}"/> </s:HGroup> <s:Scroller id="scr" width="100%" height="100%"> <s:Group> <s:layout> <s:VerticalLayout gap="1"/> </s:layout> <s:HGroup id="boxMessage" width="100%" includeInLayout="false" visible="false" verticalAlign="middle" horizontalAlign="center"> <mx:Image id="swfMessage" source="widgets/TOC/assets/images/loader.swf"/> <s:Label id="txtMessage" width="90%" text="{GeneratingLegendMsg}"/> </s:HGroup> <toccomp:TOC id="toc" width="100%" height="100%" itemRollOver="setLastTreeItem(event)" itemClick="setSelectedTreeItem(event)" metadataToolTip="{MetadataToolTip}" showMetadataButton="{showDesc}" expanded="{expanded}" legendCollapsed="{legendCollapsed}" liveScrolling="false" variableRowHeight="true" tocMinWidth="{wTemplate.width - 45}" scroller="{scr}" loader="{boxMessage}"/> </s:Group> </s:Scroller> </s:VGroup> </s:BorderContainer> <s:BorderContainer width="{slider.width}" height="{slider.height}" includeInLayout="{alphaVis}" x="{slider.x}" y="{slider.y}" alpha="0.01" visible="{!slider.enabled}" toolTip="{AlphaToolTip}"/> </viewer:WidgetTemplate>
Danny and Andrew, I have uploaded version 2.4.1 today that has the memory leak fixed and I added back in the Flex Viewer 2.3.1 compiled version to the download in case you have yet to update to Flex Viewer 2.4.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.