Select to view content in your preferred language

DynamicMap using Flex

622
2
06-26-2012 01:45 PM
TomGriffith
Deactivated User
I'm new to FLEX and stepping  through the samples. I am trying to use ArcGISDynamicLayer on one of my services that is published as a MSD. Works OK in "out of the box" ArcGIS Web Server. I copied the sample from the ESRI site but all I get is a white screen. However, it works for the sample using the Online services

<?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:esri="http://www.esri.com/2008/ags"
      pageTitle="Example - ArcGIS API for Flex connecting to a dynamic AGS service">

<esri:Map>
  <esri:ArcGISDynamicMapServiceLayer
   url="https://lakap046p2/ArcGIS/rest/services/Utilities/Electric/MapServer" visible="true" />
</esri:Map>

</s:Application>

Any suggestions will be helpful
\
Thanks

Chinati (Tom)
Tags (2)
0 Kudos
2 Replies
DasaPaddock
Esri Regular Contributor
Is https://lakap046p2/ using a self-signed SSL certificate? If it is, you'll need to first accept it in your browser before loading your Flex app. You can also try using http://lakap046p2/ArcGIS/rest/services/Utilities/Electric/MapServer instead.

Also, if your flex app is not being served from https://lakap046p2/, you'll need to add a crossdomain.xm file to https://lakap046p2/crossdomain.xml if it doesn't already exist.

See:
http://resources.arcgis.com/en/help/flex-api/concepts/index.html#/Using_crossdomain_xml/017p0000001w...
0 Kudos
TomGriffith
Deactivated User
Thanks for responding. Sorry I took so to reply. I had the seetings wrong in Flash Builder. The paths were set to absolute and I need to set them to use the URL. Simple fix but not if you don't know the right checkbox
0 Kudos