爲什麼TabbedViewNavigatorApplication沒有popView()(如ViewNavigatorApplication我可以用popView去以前的觀點)?Flex移動TabbedViewNavigatorApplication後退按鈕
我該怎麼做TabbedViewNavigatorApplication?
<fx:Script>
<![CDATA[
protected function BackBtn(event:MouseEvent):void{
navigator.popView(); //error
}
]]>
</fx:Script>
<s:ViewNavigator label="Page1" width="100%" height="100%" firstView="views.DurationView" >
<s:titleContent>
<s:Button label="Back" click="BackBtn(event)"/>
</s:titleContent>
</s:ViewNavigator>
<s:ViewNavigator label="Page2" width="100%" height="100%" firstView="views.FrequencyView"/>
</s:TabbedViewNavigatorApplication>
謝謝。
什麼是錯誤... //誤差大約是分段錯誤:) – shaunhusain 2012-02-09 22:31:55
錯誤是一樣好: – jameslcs 2012-02-09 22:51:29
導航「的未定義的屬性導航訪問」因此不是標籤對象的屬性是selectedIndex可用?您可能需要創建一個數組來存儲導航歷史記錄以及從讀取或寫入selectedIndex的數組上讀取/彈出數組。現在在手機上,但我會嘗試驗證。 – shaunhusain 2012-02-09 23:20:59