1 Reply Latest reply on Apr 1, 2007 4:34 AM by Xavier_Ly

    Passing viewStack pointer to mxml files...

      I hope someone can assist me, as I've been trying to figure this out for a while now...

      Here's the hirearchy of the system:

      MainPage <-- viewStack
      1stPage.mxml <-- a view
      2ndPage.mxml <-- another view
      3rdPage.mxml <-- another view

      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml"
      layout="absolute" xmlns:local="*">
      <mx:ViewStack id="mainStack" width="100%" height="100%">
      <local:firstPage id="firstPageStack" label="firstPage"/>
      <local:secondPage id="secondPageStack" label="secondPage"/>
      <local:thirdPage id="thirdPageStack" label="thirdPage"/>

      NOTE: firstPage, secondPage, and thirdPage are local mxml files.

      How can i make these 'views' aware of the mainStack:ViewStack so that they can switch views amongst themselves?
      i.e. How can we pass them a pointer to the main stack so that it can reference...