<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Closed widget still active in display in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/closed-widget-still-active-in-display/m-p/343623#M9828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I left it at 501. I just copied the code straight from the browser and pasted it into Flash Builder changed the name of the window and ran it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2012 16:28:39 GMT</pubDate>
    <dc:creator>BradleyMontgomery</dc:creator>
    <dc:date>2012-05-23T16:28:39Z</dc:date>
    <item>
      <title>Closed widget still active in display</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/closed-widget-still-active-in-display/m-p/343619#M9824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using one widget to pop up another widget with some results of a search. I want both widgets to close when the user closes the main calling widget. I'm using this code to close the popped up widget from within the close function of the calling widget:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;private function closeWidget(e:Event = null):void&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AppEvent.dispatch(AppEvent.WIDGET_CLOSE,ViewerContainer.getInstance().widgetManager.getWidgetId("poppedUpWidget"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Both widgets disappear but the space on the display where the popped up widget still behaves as if the widget was still there. I get tooltips when I hover over it, the Zoom crosshairs disappear when I move them over that space... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've also tried the code from this post:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/25015-closing-multiple-widgets" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/25015-closing-multiple-widgets&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with no results. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the user clicks the 'x' to close the popped up widget, all is well. The widget disappears and the space it occupied is truly empty. It only happens when the popped up widget is closed from the calling widget. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is basically the same problem described in this thread:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/44976-Close-widget-can-still-click-buttons?highlight=widget+close" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/44976-Close-widget-can-still-click-buttons?highlight=widget+close&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 16:51:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/closed-widget-still-active-in-display/m-p/343619#M9824</guid>
      <dc:creator>BradleyMontgomery</dc:creator>
      <dc:date>2012-05-17T16:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Closed widget still active in display</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/closed-widget-still-active-in-display/m-p/343620#M9825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Charlie,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; This is what works for me. Just put this in the WidgetClose function of the main widget and set the label in this function to the label of the other widget you want closed:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var timer:Timer = new Timer(501, 1);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; timer.addEventListener(TimerEvent.TIMER_COMPLETE, function():void{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var cId2:Number = ViewerContainer.getInstance().widgetManager.getWidgetId("&lt;SPAN style="color:#ff0000;"&gt;Point Buffer&lt;/SPAN&gt;");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AppEvent.dispatch(AppEvent.WIDGET_CLOSE, cId2);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; timer.start();&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't forget to &lt;/SPAN&gt;&lt;STRONG&gt;click the Mark as answer check&lt;/STRONG&gt;&lt;SPAN&gt; on this post and to &lt;/SPAN&gt;&lt;STRONG&gt;click the top arrow (promote)&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Follow the steps&lt;/STRONG&gt;&lt;SPAN&gt; as shown in the below graphic:&lt;/SPAN&gt;&lt;BR /&gt;&lt;IMG src="http://gis.calhouncounty.org/FlexViewer2.5/Answer.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:11:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/closed-widget-still-active-in-display/m-p/343620#M9825</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T16:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Closed widget still active in display</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/closed-widget-still-active-in-display/m-p/343621#M9826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Robert! That does indeed close the popped up widget. I no longer see the tooltips when I pan move the mouse over where it was before it closed. However, now I'm having the problem with the calling widget. Where it used to be completely gone with the original methods I was using, it disappears but when I move the cursor over where it was, the browser thinks it's still there - zoom crosshairs disappear, tooltips pop up ... One thing is fixed but another is broken.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 19:36:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/closed-widget-still-active-in-display/m-p/343621#M9826</guid>
      <dc:creator>BradleyMontgomery</dc:creator>
      <dc:date>2012-05-22T19:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Closed widget still active in display</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/closed-widget-still-active-in-display/m-p/343622#M9827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Charlie,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Did you modify the time in the timer? I set it to 501 for a reason.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 19:45:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/closed-widget-still-active-in-display/m-p/343622#M9827</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-05-22T19:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Closed widget still active in display</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/closed-widget-still-active-in-display/m-p/343623#M9828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I left it at 501. I just copied the code straight from the browser and pasted it into Flash Builder changed the name of the window and ran it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 16:28:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/closed-widget-still-active-in-display/m-p/343623#M9828</guid>
      <dc:creator>BradleyMontgomery</dc:creator>
      <dc:date>2012-05-23T16:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Closed widget still active in display</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/closed-widget-still-active-in-display/m-p/343624#M9829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Charlie,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I see what you are talking about. It is still a timing issue though. Change the 501 to 700 and that fixed it for me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 17:06:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/closed-widget-still-active-in-display/m-p/343624#M9829</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-05-23T17:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Closed widget still active in display</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/closed-widget-still-active-in-display/m-p/343625#M9830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That was it! Thank you so much! It's amazing how you are able to figure all this out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 21:33:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/closed-widget-still-active-in-display/m-p/343625#M9830</guid>
      <dc:creator>BradleyMontgomery</dc:creator>
      <dc:date>2012-05-25T21:33:32Z</dc:date>
    </item>
  </channel>
</rss>

