Are you sure your key is the latest one and correct? I had the same issue before and I missed part of it when copying it over.
On Dec 30 2010, 12:11 am, Abdallah Alsaqri <[email protected]> wrote: > Hi I need help getting google maps which I have embedded into a flash > website. I used Action Script 3 and adobe Flash to create the code. I > have tried registering every web address for an API Key but nothing > will work. I always end up with the: Initialization failed: please > check the API key, > swf location, version and network availability. error. Can someone > please help me out. The web address I am trying to get it to work on > is skewersbloomington.info if it helps I am using godaddy as a host. > Here is the code I am using in my video: > import com.google.maps.LatLng; > import com.google.maps.Map; > import com.google.maps.MapEvent; > import com.google.maps.MapType; > import com.google.maps.overlays.*; > import com.google.maps.controls.*; > import com.google.maps.overlays.MarkerOptions; > import com.google.maps.overlays.Marker; > import flash.geom.Point; > > var map:Map = new Map(); > map.key > ="ABQIAAAAxro7e7ijHkdCyMu0jmacXhQOkeLdzsBoqVk2eBxLGJSRbggaaxRNWE1w7oWX1ucgiL0NdmfEUTqMjw"; > map.x = 40.55; > map.y = 386; > map.sensor = "false"; > map.setSize(new Point(669, 410)); > map.addEventListener(MapEvent.MAP_READY, onMapReady); > this.addChild(map); > this.addChild(map); > function onMapReady(event:Event):void > { > map.addControl(new ZoomControl()); > map.addControl(new MapTypeControl()); > map.setCenter(new LatLng(40.459353,-88.970492), 18, > MapType.HYBRID_MAP_TYPE); > var m:Marker = new Marker(new LatLng(40.459353,-88.970492)); > map.addOverlay(m); > > } > > thanks in advance! -- 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.
