Select to view content in your preferred language

Completely New in FLEX * calling a service

1237
5
05-20-2010 08:05 AM
CarlosRiano
Emerging Contributor
Dear all..

Some days ago I began to read about API for Flex and I was interested due the power and the performance of Maps online with Flex.

Ok.. I downloaded FLEX (trial version), the first video from resources and some Books in PDF...

I create my first API according to the video and tutorials with the code of the most simple code available in resources.esri.com: "tiled Map".  I downloaded the las version of Flash Player and I copy all the structure into the Server (there is one Windows Server with ArcServer in the office) ... OK... Now I open Myfirstmap.html and I see Nothing, just a gray/green display.

I don´t know which is the problem with the service.. May you Help me.

The code is here:

<?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 - ArcGIS API for Flex connecting to a tiled AGS service"
    styleName="plain"
    >
    <mx:Text text="This is a tiled Map Service from ArcGIS Online." width="100%"/>
    <esri:Map>
        <esri:ArcGISTiledMapServiceLayer
            url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer"/>
    </esri:Map>
</mx:Application>
Tags (2)
0 Kudos
5 Replies
Drew
by
Frequent Contributor
The code you have posted works so its not that. So i guess there are some more questions that need to be answered.

Are you using Flex Builder to test & develop the application?

I downloaded the lastest version of Flash Player and I copy all the structure into the Server

When you say you "copied" all the files to the server, did you first build a release build to create the SWF file?

Is the AGS Flex API (swc) file added to the project?

Do you get any errors when debugging?

Drew
0 Kudos
CarlosRiano
Emerging Contributor
Hi CgisHak

Yes I am using Flex Builder, I followed all instructions for beginners that are in this video (including the SWC) http://resources.esri.com/help/9.3/arcgisserver/apis/flex/help/content/getting_started.htm .There is one part in the video when you run your application and launch a HTML webpage in FireFox or IE..- like in the video, the difference is that in the video the map is showed, but not in my exercise. 

When I debug my application there is one error Unable to resolve resource bundle "ESRIMessages" for locale "en_US".

There is one image attached of FireFox with the Html running
0 Kudos
Drew
by
Frequent Contributor
It looks like your application is using the first build because the error is preventing it to build a new copy. Therefore its not building a new version with the map code you added.

Be sure you have the ESRI Flex API referenced in your application as shown in the getting started video around slide 7/26
0 Kudos
CarlosRiano
Emerging Contributor
cgishack.

I followed every step, I check everything but I can not Find a solution!!
0 Kudos
Drew
by
Frequent Contributor
can you zip up the project and attached it to a message
0 Kudos