Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flex > Flex 2, 3 & 4

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-04-2008, 01:35 AM   #1
shizny
Senior Member
 
Join Date: Jan 2003
Posts: 153
Default multiple viewstacks

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>
shizny is offline   Reply With Quote
Old 03-04-2008, 05:09 PM   #2
dr_zeus
Feathers
 
dr_zeus's Avatar
 
Join Date: Mar 2005
Location: Silicon Valley
Posts: 1,999
Default

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.
__________________
Josh Tynjala | Feathers
dr_zeus is offline   Reply With Quote
Old 03-04-2008, 06:16 PM   #3
shizny
Senior Member
 
Join Date: Jan 2003
Posts: 153
Default

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>
shizny is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
1 button with multiple instances and multiple onRelease functions sonnyMac ActionScript 2.0 11 01-27-2008 03:39 AM
Classpath for multiple projects? el_monty ActionScript 2.0 0 09-28-2007 11:20 PM
Multiple flash VM instances running with multiple swfs on the single webpage sachindkulkarni Flash 9 General Questions 3 08-22-2007 05:11 PM
[MX04] Playing FLV on multiple local machines sandyrivers ActionScript 1.0 (and below) 0 01-30-2007 08:35 PM
Multiple images in one Movie Clip? Brownie Components 12 02-27-2006 09:37 PM


All times are GMT. The time now is 07:44 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.