the exemple code is following:

mxml:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute" xmlns:local="*" initialize="{ initapp(); }">
<mx:Script>
        <![CDATA[
                private function initapp():void
                {
                        var map:MapCLass = new MapCLass(new 
Point(stage.stageWidth,
stage.stageHeight));
                        this.addChild(map);
                }
        ]]>
</mx:Script>
</mx:Application>

as:
package
{
        import com.google.maps.LatLng;
        import com.google.maps.Map;
        import com.google.maps.MapEvent;
        import com.google.maps.MapType;

        import flash.geom.Point;

        public class MapCLass extends RotatableScalable
        {
                private var map:Map = new Map();

                public function MapCLass(stageSize:Point)
                {
                        map.key = "your_key_here";
                        //map.url = "http://www.blabla.com/";;
                        map.setSize(stageSize);
                        map.addEventListener(MapEvent.MAP_READY, onMapReady);
                        this.addChild(map);
                }

                private function onMapReady(event:MapEvent):void
                {
                        map.setCenter(new LatLng(40.736072,-73.992062), 14,
MapType.NORMAL_MAP_TYPE);
                }
        }
}

where is the error that didn't show the map?
thx
--~--~---------~--~----~------------~-------~--~----~
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