I am working on a Yahoo Maps app in Flex 2.  Because the Yahoo Maps
API doesn't yet fully support Flex 2 - I am making the map (and its
API calls) in Flash 8.  This Flash file also pulls data from an RSS
feed (to make markers on the map).  There are no security errors when
I run the SWF.

However, when I load the SWF into the Flex app, I get security sandbox
errors all over the place (for the Map and for the RSS feed - two
different domains).

I have the following set in the Flex application:

Security.allowDomain("domain1.com");
Security.allowDomain("domain2.com");
_context = new LoaderContext (true, ApplicationDomain.currentDomain,
SecurityDomain.currentDomain);
yahooMap.loaderContext = _context;

I have the following set in the Flash SWF:

System.security.allowDomain("domain1.com");
System.security.allowDomain("domain2.com");

I have the following Cross Domain Policy File:

<?xml version="1.0"?>
<!-- http://mydomain.com/crossdomain.xml -->
<cross-domain-policy>
  <allow-access-from domain="*" />
</cross-domain-policy>

What am I missing?
 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to