title: Navigating through Views wth ViewNavigatorApplication on Flex 4.6
body: <p>I am working on a <code>ViewNavigatorApplication</code> with Flex and I am trying to figure out how to properly work with the <code>navigator</code>.</p>
  
  <p>My problem is that, if you have the following:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                              xmlns:s="library://ns.adobe.com/flex/spark"
                              firstView="views.IntroView"&gt;
  
      &lt;s:navigationContent&gt;
          &lt;s:Button label="Home" click="navigator.popToFirstView()"/&gt;
          &lt;s:Button label="Start" click="navigator.pushView(StartView)"/&gt;
      &lt;/s:navigationContent&gt;
  &lt;/s:ViewNavigatorApplication&gt;
  </code></pre>
  
  <p>and press on the <code>Start</code> button multiple times, multiple instances of <code>StartView</code> are created, which is reasonable since this is more or less a stack of views. You can confirm that by hitting the back button of the mobile device.</p>
  
  <p>Is there a way to easily avoid this, or do i have to code a (quite complex) 'controller' that keeps track of stuff and makes sure that only one instance of each view can be pushed, <code>popView()</code>'s where needed and whatnot.</p>
  
  <p>I cannot seem to find any documentation on that, but if I missed something, please share it with me.</p>
  
  <p>Thank you!</p>