title: Flex: View Stack Navigator
body: <p>I have a component mxml file in which i have a view stack, on click of a button i navigate to the first child, now i need to navigate to the second child during onclick of a button present in the second child. All the childs are component files included within the view stack. How could this be done, 
  Sample code is present below,</p>
  
  <p>--------------------Application.mxml---------------------
  
  </p>
  
  <pre><code>&lt;mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" &gt;
      &lt;mx:Script&gt;
          &lt;![CDATA[
               private function loadScreen():void
               {
                  navigationViewStack.selectedChild=id_offering;  
               }
          ]]&gt;
      &lt;/mx:Script&gt;
  
       &lt;mx:Button label="Save" click="loadScreen();"/&gt;
  
   &lt;/mx:Canvas&gt;
  
  &lt;mx:ViewStack id="navigationViewStack"  width="100%" height="100%"&gt;
      &lt;components:dashboard   id="id_dashboard" label="Dashboard" /&gt;
      &lt;components:offering   id="id_offering" label="Offering" /&gt;
      &lt;components:IssueSec id="id_issueSec" label = "Issues"/&gt;
  &lt;/mx:ViewStack&gt;
  </code></pre>
  
  <p>
  -------------------------Ends--------------------------------------</p>
  
  <p>Now in my offering.mxml file if i try to access navigationViewStack i am getting an error stating 'Access of undefined property navigationViewStack. </p>
  
  <p>Help me on how to access the view stack from my component mxml file.</p>
  
  <p>Thanks!</p>
  
  <p>Cheers,
  Deena</p>