<?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: Random initialization issue in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/random-initialization-issue/m-p/404277#M11549</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yann,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; You are running into the same issue that the Login widget had. Look at the code changes that I made to the viewer to handle this. Ultimately it is a timing issue.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/25899-Login-Screen-for-the-Flexviewer?p=139178&amp;amp;viewfull=1#post139178"&gt;http://forums.arcgis.com/threads/25899-Login-Screen-for-the-Flexviewer?p=139178&amp;amp;viewfull=1#post139178&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It did the trick, I had in mind it was a timing issue (as the behavior was dependent on breakpoints...), but I could not figure out how to solve it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you tell me how was the counter size chosen? I understand basically the concepts of the "callLater" function, but not enough to be able to optimize the counter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yann&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Nov 2011 12:55:28 GMT</pubDate>
    <dc:creator>LAHAYEYann</dc:creator>
    <dc:date>2011-11-22T12:55:28Z</dc:date>
    <item>
      <title>Random initialization issue</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/random-initialization-issue/m-p/404275#M11547</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;BR /&gt;&lt;SPAN&gt;I'm experiencing some strange behavior with the FlexViewer when the ViewerContainer is not directly instantiated at run-time : randomly, the initial extent specified in the main configuration file is not taken into account resulting in a wrong localization.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steps to reproduce :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- In the "index.mxml" file, add the following lines :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
 &amp;lt;s:states&amp;gt;
&amp;nbsp; &amp;lt;s:State name="button" /&amp;gt;
&amp;nbsp; &amp;lt;s:State name="map" /&amp;gt;
 &amp;lt;/s:states&amp;gt;

 &amp;lt;s:Button includeIn="button" click="{currentState = 'map';}" /&amp;gt;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;- In the "index.mxml" file, add the following parameter to the ViewerContainer :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
includeIn="map"
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;- Compile and run the application : The previous modification modify the application so that when it's run, first, a white page with a button will appear; a click on the button will enable the viewer container.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Run several times the application to notice that sometimes, the initial extent is correct and sometimes not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a solution or a workaround ti this issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For more information, I'm using :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Flex viewer 2.4 with agslib 2.4,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Adobe Flex SDK 4.5.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've also run my tests with SDK 4.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sincerely yours,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yann&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 08:41:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/random-initialization-issue/m-p/404275#M11547</guid>
      <dc:creator>LAHAYEYann</dc:creator>
      <dc:date>2011-11-22T08:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Random initialization issue</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/random-initialization-issue/m-p/404276#M11548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yann,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; You are running into the same issue that the Login widget had. Look at the code changes that I made to the viewer to handle this. Ultimately it is a timing issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/25899-Login-Screen-for-the-Flexviewer?p=139178&amp;amp;viewfull=1#post139178"&gt;http://forums.arcgis.com/threads/25899-Login-Screen-for-the-Flexviewer?p=139178&amp;amp;viewfull=1#post139178&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 11:12:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/random-initialization-issue/m-p/404276#M11548</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-11-22T11:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Random initialization issue</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/random-initialization-issue/m-p/404277#M11549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yann,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; You are running into the same issue that the Login widget had. Look at the code changes that I made to the viewer to handle this. Ultimately it is a timing issue.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/25899-Login-Screen-for-the-Flexviewer?p=139178&amp;amp;viewfull=1#post139178"&gt;http://forums.arcgis.com/threads/25899-Login-Screen-for-the-Flexviewer?p=139178&amp;amp;viewfull=1#post139178&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It did the trick, I had in mind it was a timing issue (as the behavior was dependent on breakpoints...), but I could not figure out how to solve it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you tell me how was the counter size chosen? I understand basically the concepts of the "callLater" function, but not enough to be able to optimize the counter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yann&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 12:55:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/random-initialization-issue/m-p/404277#M11549</guid>
      <dc:creator>LAHAYEYann</dc:creator>
      <dc:date>2011-11-22T12:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Random initialization issue</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/random-initialization-issue/m-p/404278#M11550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yann,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; The counter is just a way to delay the code execution. I just found what worked best in &lt;/SPAN&gt;&lt;STRONG&gt;most&lt;/STRONG&gt;&lt;SPAN&gt; situations.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 13:07:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/random-initialization-issue/m-p/404278#M11550</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-11-22T13:07:00Z</dc:date>
    </item>
  </channel>
</rss>

