<?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: Index.mxml State Changes in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/index-mxml-state-changes/m-p/246162#M7583</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the info. Wanna share anything further on how you're securing you flex viewer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 May 2012 17:45:54 GMT</pubDate>
    <dc:creator>MLowry</dc:creator>
    <dc:date>2012-05-07T17:45:54Z</dc:date>
    <item>
      <title>Index.mxml State Changes</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/index-mxml-state-changes/m-p/246160#M7581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My index.mxml has two states a login state and viewer state. As of now my viewer opens in the login state, but my goal is the opposite. I want to keep the login functionality I have, and implement it a little differently. I need the viewer to load in the viewer state but then have a login button that switches to the login state when clicked. My plan was to have a function that made currentState = "Login" in the index.mxml and then have a button or label within the HeaderControllerWidget.mxml that could be clicked wich would then call the funcion. My problem is the header controller part. I am not quite sure how to import a function that is in the index.mxml. If anyone could help with that, or tell me that my logic is off and there is a better way of doing it, I would really appreciate it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 00:18:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/index-mxml-state-changes/m-p/246160#M7581</guid>
      <dc:creator>IsaiahAguilera</dc:creator>
      <dc:date>2012-05-02T00:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Index.mxml State Changes</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/index-mxml-state-changes/m-p/246161#M7582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I ended up solving my own problem. I just created a copy of the index.mxml and called it secure.mxml and each load on a different state. Logging In and Logging out will determine which one you get. I figured I would post this in case anybody cares.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 19:48:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/index-mxml-state-changes/m-p/246161#M7582</guid>
      <dc:creator>IsaiahAguilera</dc:creator>
      <dc:date>2012-05-02T19:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Index.mxml State Changes</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/index-mxml-state-changes/m-p/246162#M7583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the info. Wanna share anything further on how you're securing you flex viewer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 17:45:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/index-mxml-state-changes/m-p/246162#M7583</guid>
      <dc:creator>MLowry</dc:creator>
      <dc:date>2012-05-07T17:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Index.mxml State Changes</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/index-mxml-state-changes/m-p/246163#M7584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;M Lowry,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sure, I am using a concept I got from Robert Scheitlin at the 2012 Developer Summit where he demoed an application that used a login screen. I used a lot of the code he gave out to base my code on. The basic concept is the index.mxml has two states a "login" and "viewer" state. The source code he gave out loads into the login state and then after receiving credentials from an authentication service it loads the viewer state. I am using a different approach but the same concept, as I mentioned earlier in the above post my viewer loads the viewer state by default and essentially switches to a different application when the sign in button is clicked. I created a second index.template.html as well as another mxml in the src folder. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The source code Robert gave out is located here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://gis.calhouncounty.org/devsummit2012/"&gt;http://gis.calhouncounty.org/devsummit2012/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Its not plug and play, it takes some know how to get it to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 21:57:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/index-mxml-state-changes/m-p/246163#M7584</guid>
      <dc:creator>IsaiahAguilera</dc:creator>
      <dc:date>2012-05-08T21:57:22Z</dc:date>
    </item>
  </channel>
</rss>

