2010年8月17日_周二_Getting started_2

栏目: 编程工具 · 发布时间: 7年前

/******************************************************/

//Getting started

//Version 1.3

// 2010年8月17日

/******************************************************/

Requirements

A basic understanding of Adobe Flex and Flex Builder. Learn more at Adobe's Flex Developer Center, which includes a Getting Started section and an introductory video on Flex technology.

Access to a Flex development environment such as Adobe Flex Builder 3. You can try Adobe Flex Builder 60-days for free.

Optional: access to ArcGIS Server 9.3 and above. Note that certain functionality requires a specific minimum version, for example, routing requires ArcGIS Server 9.3.1 .

Creating an application using the ArcGIS API for Flex

要求:

对Adobe Flex 基本的理解和Flex Builder。在adobe的Flex开发中心获取更多的信息,开发中心包括一个开发如么和一个介绍Flex技术的视频。

获取一个Flex开发环境,比如:ADOBE FLEX BUILDER 3.0.你可以获取Flexbuilder软件60天的免费使用。

选项:使用ArcGIS Server 9.3或者以上的版本。 注意:一部分功能需要一个指定的最低的版本,比如:路径分析需要ArcGISServer 9.3.1 版本。

使用ArcGIS API for Flex创建一个应用程序。

To begin working with the ArcGIS API for Flex, follow the steps below:

为了使用ArcGIS API for Flex,遵照下面的步骤:

Download and unzip the ArcGIS API for Flex ZIP file. Inside, you will find the ArcGIS API for Flex library (.swc), a samples directory, and a readme file.

下载ArcGIS API for Flex的ZIP文件并解压,你就会发现ArcGIS API for Flex的类库,一个例子文件夹,和一个自述文件。

Be sure to either store the .swc file in the libs folder in your project or specify the library path in Flex Builder. To specify the path in Flex Builder

确保:要么将.swc文件保存在你的工程中的libs文件夹,要么在Flex Builder中指定swc文件的路径。 在FLEX BULILDER中指定路径的操作步骤:

a. Right-click the project.

b. Click Properties.

c. Click Flex Build Path.

d. Click the Library Path tab.

e. Add the ArcGIS API for Flex Library using the Add SWC button.

A:在工程上单击右键

B:单击属性

C:单击Flex build path

D:单击Library Path 标签

E:使用AddSWC按钮,添加ArcGIS API for Flex的API.(.SWC文件)

In your Flex environment, create an application by writing code to access the ArcGIS Server resources. You may also start by exploring the samples. For instance, the following is the source code for accessing a tiled map:

在你的Flex开发环境中,创建一个应用程序,通过写代码访问ArcGIS Server资源。你也可以从开始学习例子开始学习。 比如:下面的就是访问一个TILED地图资源的源代码。

<?xml version="1.0" encoding="utf-8"?>

<mx:Application

xmlns:mx="http://www.adobe.com/2006/mxml"

xmlns:esri="http://www.esri.com/2008/ags"

pageTitle="Example #1">

<esri:Map>

<esri:ArcGISTiledMapServiceLayer

url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer" />

</esri:Map>

</mx:Application>

Compile(编译) the code to create your application.

For deployment tips, see Deploying your application.

编译代码来生成你的应用程序。

对于部署的秘诀,查看【Deploying your application】


以上所述就是小编给大家介绍的《2010年8月17日_周二_Getting started_2》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

浪潮之巅(第三版)(上下册)

浪潮之巅(第三版)(上下册)

吴军 / 人民邮电出版社 / 2016-5 / 99.00元

一个企业的发展与崛起,绝非只是空有领导强人即可达成。任何的决策、同期的商业环境,都在都影响着企业的兴衰。《浪潮之巅》不只是一本历史书,除了讲述科技顶尖企业的发展规律,对于华尔街如何左右科技公司,以及金融风暴对科技产业的冲击,也多有着墨。此外,这本书也着力讲述很多尚在普及 或将要发生的,比如微博和云计算,以及对下一代互联网科技产业浪潮的判断和预测。因为在极度商业化的今天,科技的进步和商机是分不开的。......一起来看看 《浪潮之巅(第三版)(上下册)》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具