PDA

View Full Version : multiple viewstacks


shizny
03-04-2008, 02:35 AM
Hi. I am creating a flex app and have multiple pages associated with different header menus. I wanted to break the page up into two viewstacks because of this, but I didn't know if you can do that. I tried it and it didn't give me any problems, but I just hadn't seen any examples out there and it made me worry I was doing something wrong.

Here is my code.

</mx:HBox>
<mx:ViewStack id="vwStack" width="100%" paddingBottom="10" paddingTop="10" resizeToContent="true" creationPolicy="all" height="100%">
<view:loginBox id="loginBox"/>
<view:enterPlayData id="enterPlayData"/>
<view:importNewGameData id="importNewGameData" />
<view:singleGameSelect id="singleGameSelect" />
</mx:ViewStack>
</mx:HBox>

dr_zeus
03-04-2008, 06:09 PM
Can you explain what you mean by "two viewstacks"? I only see one in your code and it's not clear what you'd like to do.

shizny
03-04-2008, 07:16 PM
oops. thanks for the catch. What I meant is something like this

</mx:HBox>
<mx:ViewStack id="vwStack" width="100%" paddingBottom="10" paddingTop="10" resizeToContent="true" creationPolicy="all" height="100%">
<view:loginBox id="loginBox"/>
<view:enterPlayData id="enterPlayData"/>
<view:importNewGameData id="importNewGameData" />
<view:singleGameSelect id="singleGameSelect" />
</mx:ViewStack>
<mx:ViewStack id="vwStackTwo" width="100%" paddingBottom="10" paddingTop="10" resizeToContent="true" creationPolicy="all" height="100%">
<view:loginBoxTwo id="loginBoxTwo"/>
<view:enterPlayDataTwo id="enterPlayDataTwo"/>
</mx:ViewStack>
</mx:HBox>