Select to view content in your preferred language

Map Service not loading using Flex API

4456
10
01-26-2011 05:46 AM
VinayVyas
Emerging Contributor
Hi Friends,

I am new to ArcGIS and ArcGIS server. I created a service and used the arcgis manager to deploy a web application. So far so good. My goal is to use my .mxd file and use flex to view it on a web page and design my custom interface to interact with it.

I used the code samples given online and ran it using my flash builder. These also work.

The issue is when I try to use the map URL of my local ArcGIS server in my flash builder, it does not work. I see a blank screen.

My Flex code

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

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="absolute"
    xmlns:esri="http://www.esri.com/2008/ags">
<esri:Map>
<esri:ArcGISImageServiceLayer url="http://8HGXXXX:8399/arcgis/services/My_Map/MapServer" />
</esri:Map>

</mx:Application>

I shall be thankful if you can suggest me how to resolve this.

PS: The numbers have been censored for security.
Tags (2)
0 Kudos
10 Replies
ScottEvenson
Emerging Contributor
Robert,

Good point!  I couldn't tell if it was tiled, dynamic or feature from the post.
Thanks,

-Scott
0 Kudos