<mx:ViewStack id="vs" height="100%" width="100%" creationPolicy="all">
<?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"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:esri="http://www.esri.com/2008/ags" minWidth="955" minHeight="600"
xmlns:local="*"
>
<fx:Script>
<![CDATA[
import com.esri.ags.FeatureSet;
import com.esri.ags.Graphic;
import com.esri.ags.SpatialReference;
import com.esri.ags.events.ExtentEvent;
import com.esri.ags.events.GraphicEvent;
import com.esri.ags.geometry.Extent;
import com.esri.ags.geometry.MapPoint;
import com.esri.ags.layers.Layer;
import com.esri.ags.layers.supportClasses.LOD;
import com.esri.ags.tasks.supportClasses.Query;
import mx.controls.Alert;
import mx.managers.ToolTipManager;
import mx.rpc.AsyncResponder;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import skins2.SearchButtonSkin;
private function onFault(event:FaultEvent):void
{
Alert.show("There was a problem while processing request", "ERROR");
}
private function OpenSearch_Click():void
{
//theAddressSearch.visible = true;
}
protected function navigatorcontent1_activateHandler(event:Event):void
{
var fireGroundMap:FireGroundTab = new FireGroundTab();
fireground.addElement(fireGroundMap);
}
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
<esri:QueryTask id="countyBoundaryQueryTask"
url="http://gis.greenvillesc.gov/ArcGIS/rest/services/BaseMaps/GreenvilleSpecialDisplay/MapServer/2" useAMF="false"
fault="onFault(event)">
</esri:QueryTask>
<esri:SimpleFillSymbol id="countyLimFillOut" color="0xFF0000" alpha="0.5" style="diagonalcross" >
<esri:SimpleLineSymbol color="0xFF0000" width="4" alpha="1" style="solid" />
</esri:SimpleFillSymbol>
<esri:SimpleFillSymbol id="countyLimFillIn" color="0xFFFF99" alpha="0.5" style="diagonalcross" >
<esri:SimpleLineSymbol color="0xFFFF99" width="4" alpha="1" style="solid" />
</esri:SimpleFillSymbol>
</fx:Declarations>
<fx:Style>
</fx:Style>
<s:BorderContainer id="bcapp" borderColor="#007B57" width="100%" height="100%" borderWeight="3" cornerRadius="3" skinClass="skins2.FireApplicationSkin" >
<s:VGroup width="100%" height="100%" gap="-3" top="65" left="5" bottom="5">
<s:TabBar id="tabs" left="8" y="2" dataProvider="{vs}" skinClass="skins2.CustomTabBarSkin" cornerRadius="4" height="50" />
<mx:ViewStack id="vs" width="98%" height="95%" left="8" y="50">
<s:NavigatorContent label="Location" width="100%" height="100%" >
<local:LocationTab id="locationMap"/>
</s:NavigatorContent>
<s:NavigatorContent label=" FireGround " id="fireground" width="100%" height="100%" activate="navigatorcontent1_activateHandler(event)">
</s:NavigatorContent>
<s:NavigatorContent label=" FireHouse Info " width="100%" height="100%">
</s:NavigatorContent>
</mx:ViewStack>
</s:VGroup>
</s:BorderContainer>
</s:Application>