The code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<maps:Map xmlns:maps="com.google.maps.*"
id="map"
mapevent_mappreinitialize="onMapPreinitialize(event)"
width="900" height="800"
sensor="false"
key="ABQIAAAAuAZy45jesgInRsqXVWOWMRQ6NtYFKz8kcipay_9yGtFnqZ2WIxRoOwKZqHpS5gV8Wbrudz2JwPzBHA"/>
<mx:Script>
<![CDATA[
import com.google.maps.LatLng;
import com.google.maps.Map;
import com.google.maps.MapEvent;
import com.google.maps.MapType;
import com.google.maps.MapOptions;
private function onMapPreinitialize(event:Event):void {
var opts:MapOptions = new MapOptions();
opts.zoom = 14;
opts.center = new LatLng(40.736072,-73.992062);
opts.mapType = MapType.NORMAL_MAP_TYPE;
this.map.setInitOptions(opts);
}
]]>
</mx:Script>
</mx:Application>
I did change the height and width to numbers not percentages.
I have addeed the map_flex_1_20.swc to the libraries.
The compile error is: Cannot resolve attribute 'mapevent_mappreinitialize'
for component type com.google.maps.Map.
Any ideas?
Thanks,
Carl
--
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.