title: close window and open a new window titanium alloy
body: <h2>I need to close the windows2 to open windows3. I have the next code: I'm a begginer on titanium , please help me.</h2>
  
  <pre><code>    //Windows1.XML
      &lt;Alloy&gt;
          &lt;Window exitOnClose="false"&gt;
              &lt;Button   onClick="openWindows2" visible="false"&gt;
              &lt;/Button&gt;
          &lt;/Window&gt;
      &lt;/Alloy&gt;
      CONTROLLER
      //Window1.js
      function openWindows2(e)
      {
        var Window2=Alloy.createController('Window2').getView();
        newWindows.open(); 
      }
      $.Windows1.open()
  </code></pre>
  
  <h2>This code is the second view i open with the first controller on windows1 //Window2.XML</h2>
  
  <pre><code>    &lt;Alloy&gt;
          &lt;Window exitOnClose="false"&gt;
              &lt;Button   onClick="openWindows3" visible="false"&gt;
              &lt;/Button&gt;
          &lt;/Window&gt;
      &lt;/Alloy&gt;
  </code></pre>
  
  <h2>the controller function open the windows 3 //Window2.js</h2>
  
  <pre><code>    function openWindows3(e)
      {
        var Window3=Alloy.createController('Window3').getView();
        newWindows.open(); 
      }
      $.Windows2.open()
  </code></pre>
  
  <h2>my windows 3 //Window3.XML</h2>
  
  <pre><code>    &lt;Alloy&gt;
          &lt;Window exitOnClose="false"&gt;
              &lt;Button  onClick="anotherFn" visible="false"&gt;
              &lt;/Button&gt;
          &lt;/Window&gt;
      &lt;/Alloy&gt;
      //Window3.js
      $.Windows3.open()
  </code></pre>