I have a ViewNavigator that I want to hide the action bar. The creationComplete listener successfully removes the action bar, but as soon as another view is push, the action bar reappears. How can I keep it hidden?
<?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>
The
Viewclass has anactionBarVisibleproperty. You can set this tofalseon each/all views, then it won’t show up. Maybe I missed it, but I don’t see a way to do it globally for theViewNavigatoritself, other thanhideActionBar().