Wow...I am astonished I missed such a small thing as that. I give you very much thanks...it works now! :)
On Oct 22, 8:39 pm, Daniel <[email protected]> wrote: > But quotes around your api key. It is a string. > On Oct 22, 2010 3:24 PM, "dac" <[email protected]> wrote: > > > I thank you for your reply. I'm not sure what you mean by "Post your > > code where the api key is." You mean inside Flash or inside this > > posting? Yes, I did get the api key for my domain. > > > Lemme just post this: > > > import com.google.maps.LatLng; > > import com.google.maps.Map; > > import com.google.maps.MapEvent; > > import com.google.maps.MapType; > > > var map:Map = new Map(); > > map.key = xxxxxxxxxxx-xxxxxxxxxxxxxxxx_xxx; > > map.sensor = true; > > map.setSize(new Point(stage.stageWidth, stage.stageHeight)); > > map.addEventListener(MapEvent.MAP_READY, onMapReady); > > this.addChild(map); > > > function onMapReady(event:Event):void { > > map.setCenter(new LatLng(40.736072,-73.992062), 14, > > MapType.NORMAL_MAP_TYPE); > > } > > > line 7: two 1120 errors. > > line 8: 1067: Implicit coercion of a value of type Boolean to an > > unrelated type String. > > xx's are obviously where my key is placed, key is separated by a dash > > > On Oct 22, 4:33 pm, Daniel <[email protected]> wrote: > >> Post your code where the api key is. Did you get an api key for your > domain? > > >> Daniel,www.VindaMedia.com > >> On Oct 22, 2010 1:04 PM, "dac" <[email protected]> wrote: > > >> > I copy and pasted the code from here: > >> >http://code.google.com/apis/maps/documentation/flash/tutorial-flash.html > > >> > My API key is: xxxxxxxxxx-xxxxxxxxxxxxxxxxx_xxx > > >> > It's coming up as an error for the key before the "-" and after it, > >> > separating it for some reason as two different 1120 errors. Why isn't > >> > Flash CS3 able to process this key? And what's the purpose of the "-" > >> > symbol? I took it out and it didn't help. > > >> > I have the proper file in my root directory. > > >> > Much thanks for any info. > > >> > -- > >> > 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]<google-maps-api-for-flash%[email protected]> > > <google-maps-api-for-flash%[email protected]<google-maps-api-for-flash%[email protected]> > > >> .> For more options, visit this group at > > >>http://groups.google.com/group/google-maps-api-for-flash?hl=en. > > > -- > > 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]<google-maps-api-for-flash%[email protected]> > .> For more options, visit this group at > > http://groups.google.com/group/google-maps-api-for-flash?hl=en. > > -- 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.
