ArcGIS API for Flex - 搭建环境

来源:互联网 发布:java base64 key 编辑:程序博客网 时间:2024/05/01 16:25

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:ArcGISTiledMapServiceLayerurl="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" /></esri:Map></s:Application>


效果如下:




原创粉丝点击