<?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: centerAt only works on the first combo change in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/centerat-only-works-on-the-first-combo-change/m-p/604538#M13459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am really sorry, but there appears to be nothing wrong with this code.&amp;nbsp; It works fine.&amp;nbsp; I started a new browser window and it all worked perfectly.&amp;nbsp; I can't figure out how to delete a post.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sera&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Feb 2012 17:19:25 GMT</pubDate>
    <dc:creator>SeraWhite</dc:creator>
    <dc:date>2012-02-09T17:19:25Z</dc:date>
    <item>
      <title>centerAt only works on the first combo change</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/centerat-only-works-on-the-first-combo-change/m-p/604537#M13458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The function below only works on the first combo change event.&amp;nbsp; The combobox is really not the problem.&amp;nbsp; The data changes with the combo event, but for some reason the centerAt will not fire on the second change event.&amp;nbsp; Has anyone seen this issue?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;protected function cbo_ZoomToTerritory_changeHandler(event:IndexChangeEvent):void
&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var extentString:String = cbo_ZoomToTerritory.selectedItem.data;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var extentVals:Array =extentString.split(",");
&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; mainMap.extent.update(extentVals[2],extentVals[3],extentVals[0],extentVals[1]);
&amp;nbsp;&amp;nbsp;&amp;nbsp; mainMap.centerAt(mainMap.extent.center);
&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 17:09:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/centerat-only-works-on-the-first-combo-change/m-p/604537#M13458</guid>
      <dc:creator>SeraWhite</dc:creator>
      <dc:date>2012-02-09T17:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: centerAt only works on the first combo change</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/centerat-only-works-on-the-first-combo-change/m-p/604538#M13459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am really sorry, but there appears to be nothing wrong with this code.&amp;nbsp; It works fine.&amp;nbsp; I started a new browser window and it all worked perfectly.&amp;nbsp; I can't figure out how to delete a post.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sera&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 17:19:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/centerat-only-works-on-the-first-combo-change/m-p/604538#M13459</guid>
      <dc:creator>SeraWhite</dc:creator>
      <dc:date>2012-02-09T17:19:25Z</dc:date>
    </item>
  </channel>
</rss>

