Select to view content in your preferred language

Moved SWF and now it doesn't connect to local server

518
1
06-01-2010 10:30 AM
JudsonOldford
Deactivated User
Hello,

I've build a simple map in Flex that uses a tiled service from a server on my network.  It works in on my local drive in the project folder but when I move the SWF to a network drive if stops loading data from my server.  It will still load in data from ArcGIS online(http://server.arcgisonline.com).

What can I do to allow the SWF to access my server after I move it to the network drive?


Here is a sample of my code:

<?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"
    styleName="plain"
    layout="absolute"
    >
    <mx:Script>
        <![CDATA[
            import com.esri.ags.SpatialReference;
            import com.esri.ags.geometry.Extent;
        ]]>
    </mx:Script>
    <esri:Map id="myMap">
        <esri:ArcGISTiledMapServiceLayer
  url="http://myServer/ArcGIS/rest/services/myservices/Provincial_Imagery/MapServer"/>
  <esri:ArcGISTiledMapServiceLayer
        url="http://myServer/ArcGIS/rest/services/myServices/Provincial_Basemap/MapServer"/>
  
    </esri:Map>
</mx:Application>
Tags (2)
0 Kudos
1 Reply
DasaPaddock
Esri Regular Contributor
See "Using crossdomain.xml" under References at:
http://resources.esri.com/help/9.3/arcgisserver/apis/flex/help/index.html
0 Kudos