What does MyFormPage look like?  Maybe they aren't reporting good sizes?

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Fred Barrett
Sent: Wednesday, September 12, 2007 9:20 AM
To: [email protected]
Subject: [flexcoders] Nested Viewstacks - Child stack won't display

 

Long-time .NET programmer, 2-month noob to Flex. I have an
<mx:Application /> that wants to have an <mx:ViewStack /> for the main
site navigation, and then inside of a component page I want to have
another <mx:ViewStack /> for the specific page/form (it has three
pages to it). 

<mx:Application>
<mx:ButtonBar dataProvider="stack1" />
<mx:ViewStack id="stack1">
<mx:Canvas label="Home Page"/>
<fmb:MyComponentPage label="Edit Students" />
</mx:ViewStack>
</mx:Application>

<!-- edit students component -->
<mx:Canvas>
<mx:LinkBar dataProvider="formStack" />
<mx:ViewStack id="formStack">
<fmb:MyFormPage1 label="Form Page 1" />
<fmb:MyFormPage2 label="Form Page 2" />
<fmb:MyFormPage3 label="Form Page 3" />
</mx:ViewStack>
</mx:Canvas>

When I either preview the main.xml application in Design Mode, or Run
the application, the main page content shows up, and the <mx:LinkBar
/> from the component page displays, but the content of the child
<mx:ViewStack id="formStack" /> doesn't display.

I have attempted to set the .selectedIndex and .visible properties in
script to force the issue, but no avail.

Ideas are appreciated...I guess I can fall back on an <mx:State /> for
the child form but don't think that's the right answer.

 

Reply via email to