English

Problem: When using the ArcWeb Explorer Flex API, an external data source is not accessible outside the application's domain

Description

When using the ArcWeb Explorer Flex API, an external data source is not accessible outside the application's domain.

Cause

To access data from a remote server, which is a different server from the one where the Flex application is hosted, the remote server needs to have a crossdomain.xml file in the root directory.

Solution or Workaround

For security reasons, the Web browser is not allowed to access data that resides outside of the exact Web domain where the SWF file originated. However, the Adobe Flash Player can load data across domains if permission is granted from the server. This is accomplished by having a small crossdomain.xml file on the remote server that permits Flash to connect to services on that server.

For additional information, read about Using cross-domain policy files, see the Adobe TechNote, "External data not accessible outside a (Macromedia) Flash movie's domain," or view a sample cross-domain file.