SecurityError: Error #2047: Security sandbox violation: parent: http://maps.googleapis.com/mapsapi/publicapi?file=flashapi&url=https%3A%2F%2Fna6.salesforce.com%2Fresource%2F1240779514000%2FGoogleMap2&key=ABQIAAAAA7aFgeQgFpt9KTUNsnsLOxQwNgRt8BDbI5KFRawO0dUAA_H1zxQUyv2-vlR7Qh3Fo2Zda7t4mYGuww&v=1.9&flc=x cannot access https://na6.salesforce.com/resource/1240779514000/GoogleMap2. at flash.display::DisplayObject/get parent() at com.google.maps.templates::BootstrapSwf/onAdded()
I receive this error from one of my SWFs that is embedded in a https:// domain (on Salesforce.com). I've posted with them and they sent me here. What I'm trying to do is embed a Flex-wrapped Google Map in Salesforce.com and ultimately add a lot more cool interactions. I've skinnied this down to barely any code but can't seem to get through this :( I am using the Google Maps API for Flex (v1.9). The file name is map_flex_1_9.SWC. I am trying to add the allowInsecureDomain call but I'm not sure if I've called this in the right place (maybe I should be calling this onCreationComplete for the app?) Here's my mxml/as code: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ import com.google.maps.LatLng; import com.google.maps.Map; import com.google.maps.MapEvent; import com.google.maps.MapType; private function onMapReady(event:MapEvent):void { Security.allowInsecureDomain("maps.googleapis.com"); map.setCenter(new LatLng(40.019444,-105.292778), 14, MapType.NORMAL_MAP_TYPE); } ]]> </mx:Script> <mx:HBox> <maps:Map xmlns:maps="com.google.maps.*" mapevent_mapready="onMapReady(event)" id="map" key="ABQIAAAAA7aFgeQgFpt9KTUNsnsLOxQwNgRt8BDbI5KFRawO0dUAA_H1zxQUyv2- vlR7Qh3Fo2Zda7t4mYGuww"/> </mx:HBox> </mx:Application> This SWF is then added as a static resource in Salesforce.com and is served from the https://na6.salesforce.com/ domain. Any help would be appreciated. Thanks! :) gabe --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-maps-api-for-flash?hl=en -~----------~----~----~----~------~----~------~--~---
