0
我有两个viewstacks主菜单和另一个子菜单。我只想在当时显示viewstack页面信息,只有一个viewstacks。另一个隐藏。如果我点击子菜单viewstack,那么Mainmenu viewstack将被隐藏。我怎样才能做到这一点 ?我不知道它是否正确。如果你有任何其他的选择添加子菜单和manimenu使用视图堆栈PLZ建议我。如何在AIR应用程序中隐藏视图堆栈?
我试图像(可见= FALSE)子viewstack是
<mx:AddChild position="lastChild">
<mx:ViewStack x="3" y="94" id="Submenu" height="499" width="905" visiable="false" >
<ns1:Pick15view label="Pick15" x="10" y="10" height="511" width="904" showEffect="WipeDown" hideEffect="WipeUp">
</ns1:Pick15view>
<ns1:Lottoview label="Lotto" x="0" y="10" showEffect="WipeDown" hideEffect="WipeUp" height="493" width="902">
</ns1:Lottoview>
<ns1:Trottingbet label="Trottingbet/Galobet" showEffect="WipeDown" hideEffect="WipeUp" x="362" y="183" height="489">
</ns1:Trottingbet>
</mx:ViewStack>
</mx:AddChild>
主菜单viewsttack是
<mx:AddChild position="lastChild">
<mx:ViewStack x="3" y="94" id="MainMenu" height="499" width="905" visible="true" >
<ns1:home label="Pick15" x="10" y="10" height="511" width="904" showEffect="WipeDown" hideEffect="WipeUp">
</ns1:home>
<ns1:Contact label="Lotto" x="0" y="10" showEffect="WipeDown" hideEffect="WipeUp" height="493" width="902">
</ns1:Contact>
<ns1:Rule label="Trottingbet/Galobet" showEffect="WipeDown" hideEffect="WipeUp" x="362" y="183" height="489">
</ns1:Rule>
</mx:ViewStack>
谢谢zdmytriv。我应该使用includeInLayout =“false”。 – 2009-07-24 09:39:30