Recipe 20.12. Loading XML from Different Domains


Problem

You want to be able to load XML from domains other than the domain that the .swf is served from.

Solution

Use a crossdomain.xml policy file on the remote domain with an entry to allow access from the domain the .swf is served from.

Discussion

See Recipe 3.12 for information about using a crossdomain.xml policy file.

See Also

Recipe 3.12




ActionScript 3. 0 Cookbook
ActionScript 3.0 Cookbook: Solutions for Flash Platform and Flex Application Developers
ISBN: 0596526954
EAN: 2147483647
Year: 2007
Pages: 351

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net