我有一个要隐藏操作栏的 ViewNavigator。creationComplete 侦听器成功删除了操作栏,但只要推送另一个视图,操作栏就会重新出现。我怎样才能让它隐藏起来?
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
creationComplete="application1_initializeHandler(event)">
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
protected function application1_initializeHandler(event:FlexEvent):void
{
viewNav.hideActionBar(false);
addEventListener(MouseEvent.CLICK, pushView);
}
protected function pushView(event:MouseEvent):void
{
viewNav.pushView(FirstView);
}
]]>
</fx:Script>
<s:ViewNavigator id="viewNav" top="0" bottom="0" left="0" right="0" firstView="FirstView" />
</s:Application>