Hi all, I have build index.mxml like I did with widgets I create...but it doesnt work( I dont see any map!!)...I have to replace original swf file from sample flex viewer and my website work again...I dont know what's wrong with it. Thanks to everybody.<?xml version="1.0" encoding="utf-8"?>
<!--
////////////////////////////////////////////////////////////////////////////////
//
// ESRI, Inc
// Copyright 2008 ESRI, Inc
// All Rights Reserved.
//
// NOTICE: ESRI permits you to use, modify, and distribute this file
// in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////
-->
<mx:Application xmlns:mx ="http://www.adobe.com/2006/mxml"
xmlns ="com.esri.solutions.flexviewer.*"
layout ="absolute"
applicationComplete ="registerGlobalKeyHandler()"
styleName ="plain"
backgroundColor ="#6E6E6E"
xmlns:widgets="com.esri.solutions.flexviewer.widgets.*">
<!--
/**
* The site container has six major components:
* - ConfigManager: loads configuration file (config.xml), parse it and submit to event bus.
* - Controller : holds branding UI elements and application navigation items such as menus.
* - DataManager : manages data generated during a user session.
* - WidgetManager: manages widgets during the user session.
* - MapManager : manages map(s) such as base map and live maps used during the user session.
*/
-->
<mx:Script>
<![CDATA[
import com.esri.solutions.flexviewer.AppEvent;
import mx.managers.IDragManager;
import mx.managers.HistoryManager;
private var iDragManager:IDragManager;
private var hist:HistoryManager;
private function registerGlobalKeyHandler() :void
{
stage.addEventListener(KeyboardEvent.KEY_DOWN, handleKeyDown);
}
private function handleKeyDown(event:KeyboardEvent) :void
{
if ((event.shiftKey) && (event.keyCode == 27))
{
SiteContainer.dispatchEvent(new AppEvent(AppEvent.SET_MAP_NAVIGATION, false, false, null));
}
}
]]>
</mx:Script>
<SiteContainer id="container">
<configManager> <ConfigManager/> </configManager>
<uiManager> <UIManager/> </uiManager>
<controller> <Controller x="20" y="20"/> </controller>
<dataManager> <DataManager/> </dataManager>
<widgetManager> <WidgetManagerDocked/> </widgetManager>
<mapManager> <MapManager/> </mapManager>
</SiteContainer>
</mx:Application>