ArcGIS API for Flex - 搭建環境

1.下載最新版Flash Builder。

Adobe Flash Builder 4.7 | English | Windows 64-bit | 1012.3MB

地址:http://trials3.adobe.com/AdobeProducts/FLBR/4_7/win64/FlashBuilder_4_7_LS10_win64.exe

2.安裝試用版。

3.修改配置信息。

3.1 C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\eclipse\plugins\com.adobe.flexbuilder.project_4.7.0.349722\META-INF\MANIFEST.MF

line 34: Bundle-Version: 4.7.0.349722 ->Bundle-Version:0.0.0

3.2 C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\eclipse\features\com.adobe.flexide.feature_4.7.0.349722\feature.xml

line 87:    <plugin
         id="com.adobe.flexbuilder.project"
         download-size="0"
         install-size="0"
         version="4.7.0.349722"/>  -> version="0.0.0"

4.拷貝文件。

C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\eclipse\plugins\com.adobe.flexbuilder.flex_4.7.0.349722
config.xml -> config_builder.xml

附:啓動界面

參考資料:http://wenku.baidu.com/view/86ccc98d83d049649b6658e0.html

--------------------------------------------------------------------------------------------  我是分割線  --------------------------------------------------------------------------------------------

下載ArcGIS API 3.1 for Flex

地址:http://www.esri.com/apps/products/download/index.cfm

===============
Getting Started
===============
1. In Adobe Flash Builder, create a new Flex project (File -> New -> Flex project).

2. Copy all the contents of the ArcGIS_Flex\samples\src folder to src folder of the Flex project created above.

3. In Adobe Flash Builder, add the API Library to the project through Project -> Properties -> Flex Build Path -> Library Path -> Add SWC (and locate the "agslib-3.1-2012-12-12.swc")


4. In Adobe Flash Builder, right-click on any of the sample mxml applications and click "Set as Default Application".

5. In Adobe Flash Builder, right-click on any of the sample mxml applications and click "Run Application".

<?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"
			   pageTitle="agsFlexDemo1"
			   minWidth="955" minHeight="600">
	<fx:Declarations>
		<!-- 將非可視元素(例如服務、值對象)放在此處 -->
	</fx:Declarations>
	<esri:Map>
		<esri:ArcGISTiledMapServiceLayer
			url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" />
	</esri:Map>
</s:Application>


效果如下:




發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章