The workaround is a proxy server.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of aceoohay Sent: Sunday, January 27, 2008 10:13 PM To: [email protected] Subject: [flexcoders] Re: Yahoo Maps AS3 integration problem I put the following in both the AS file that does the BitmapData/Draw () as well as the module that renders the map; Security.loadPolicyFile('http://us.maps1.yimg.com/crossdomain.xml <http://us.maps1.yimg.com/crossdomain.xml> '); I believe the problem is on the yahoo side since their crossdomain.xml file contains; <cross-domain-policy> <allow-access-from domain="*.yimg.com" /> <allow-access-from domain="*.yahoo.com" /> </cross-domain-policy> I assume that they would need to change it to something like; <cross-domain-policy> <allow-access-from domain="*.yimg.com" /> <allow-access-from domain="*.yahoo.com" /> <allow-access-from domain="*" /> </cross-domain-policy> This presupposes that I understand how a crossdomain.xml policy file works, a shaky proposition. Paul --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , Sherif Abdou <[EMAIL PROTECTED]> wrote: > > try a crossDomain file > > > ----- Original Message ---- > From: aceoohay <[EMAIL PROTECTED]> > To: [email protected] <mailto:flexcoders%40yahoogroups.com> > Sent: Sunday, January 27, 2008 11:39:22 PM > Subject: [flexcoders] Yahoo Maps AS3 integration problem > > I am adding Yahoo maps to an existing application. Everything seems > to be working swimmingly. This application has a generic feature for > all panels that allows the user to e-mail the panel to another user. > > To do this the application grabs the image of the panel using the > BitmapData/draw( ) funtionality. Flex get's its shorts in a bunch over > this when trying to access the Yahoo Maps panel. > > The error I get is; > > SecurityError: Error #2121: Security sandbox violation: > BitmapData.draw: http://localhost/ XXX/src/bin/ XXXMain.swf cannot > access http://us.maps1. yimg.com/ us.tile.maps. yimg.com/ tile? > md=200705152300& col=0&row= 4&z=14&t= p. This may be worked around by > calling Security.allowDomai n. > > I have tried calling Security.allowDomai n() with various urls to no > avail. > > Is there a workaround for this? > > Paul > > > > > > __________________________________________________________ ______________ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ <http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ> >

