我有两个视图堆栈,一个用于主菜单,另一个用于子菜单。我想当时只有一个 viewstacks 显示 viewstack 页面信息。又一个躲起来。如果我单击子菜单视图堆栈,则主菜单视图堆栈将被隐藏。我怎样才能做到这一点 ?我不知道它是否正确。如果您有任何其他选项可以使用视图堆栈添加子菜单和 manimenu,请建议我。
我试过像(可见=假)子菜单视图堆栈是
<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>
主菜单视图攻击是
<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>