Hi .

I want to use the "mapevent_maploaded" event.

However, it is not called from the map.

Do you know anything about solution of the problem ?

[TEST CODE]
----------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute" xmlns:ns1="com.google.maps.*">
        <mx:Script>

                <![CDATA[
                        import com.google.maps.*;
                        import com.google.maps.interfaces.*;
                        import com.google.maps.overlays.*;
                        import mx.controls.Alert;

                        private const APIKEY:String = "<MAP API KEY>";

                        private function onMapReady(event:Event):void{
                                /**********************************************/
                                /**         initalize Google Maps            **/
                                /**********************************************/

                                //set center-position
                                this.map.setCenter(new 
LatLng(40.756054,-73.986951), 5);
                                Alert.show("onMapReady");
                        }

                        private function onMapLoaded(event:Event):void{
                                //mapping marker to map
                                Alert.show("onMapLoaded");
                        }
                ]]>
        </mx:Script>
        <ns1:Map x="0" y="0" id="map" mapevent_mapready="onMapReady(event);"
mapevent_maploaded="onMapLoaded(event);" width="100%" height="100%"
key="{APIKEY}"/>
</mx:Application>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to