Getting started

Version 1.3

Requirements

Creating an application using the ArcGIS API for Flex


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

  1. 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.

    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

    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.
  2. 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:

<?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>

  1. Compile the code to create your application.

For deployment tips, see Deploying your application.