Hi there :)
I'm trying some basic examples with the Google Maps Flash API in Flex
Builder 3 (Adobe AIR projects).
I'm puzzled with "Security sandbox errors" when I try to add controls
to the maps (with the map only everything looks good)... Here's the
code:
<maps:Map xmlns:maps="com.google.maps.*" id="map"
mapevent_mapready="onMapReady(event)"
mapevent_mappreinitialize="onMapPreInit(event)" url="MY_URL"
key="MY_API_KEY" left="10" right="10" bottom="10" top="10"/>
[...]
import com.google.maps.MapOptions;
import com.google.maps.LatLng;
import com.google.maps.Map;
import com.google.maps.MapEvent;
import com.google.maps.MapType;
import com.google.maps.MapMouseEvent;
import com.google.maps.controls.*;
private function onMapPreInit(event:Event):void
{
var options:MapOptions = new MapOptions();
options.zoom = 14;
options.center = new LatLng(40.736072,-73.992062);
options.mapType = MapType.NORMAL_MAP_TYPE;
this.map.setInitOptions(options);
}
private function onMapReady(event:Event):void
{
this.map.addControl(new ZoomControl());
}
Basic stuff as you can see... Whenever I try to rollover the zoom
control I get errors like this:
*** Security Sandbox Violation ***
SecurityDomain 'http://maps.googleapis.com/mapsapi/publicapi?
file=flashapi&url=MY_URL&key=MY_API_KEY&v=1.8&flpub=&flh=c6406e316952296580d3512ff9e090783e32bf1c&flc=xa'
tried to access incompatible context 'app:/googlemapsnotepad.swf'
Any idea? I'm using version 1.8 of the API, which is "safe" with Adobe
AIR :P
--
Napolux
http://www.napolux.com/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---