Google doesn't have a crossdomain.xml file on their servers that will let you use the HTTPService to get geocoding via HTTP calls from a SWF. You have to use the Geocoding functions provided in the FLASH API to access the GeoCoding functions.
Mark On Apr 29, 1:48 pm, phile13 <[email protected]> wrote: > I am getting a sandbox violation when run this code. > We have a valid key for our domain, but I am doing development > on my local machine does this matter? > > public class GoogleGeocoder extends HTTPService implements IResponder > { > public function GoogleGeocoder(rootURL:String=null, > destination:String=null) > { > super(rootURL, destination); > this.url = "http://maps.google.com/maps/geo"; > } > > public function geocode( query:String ) : void { > var parms:Object = new Object(); > parms.q = query; > parms.key = "MY_KEY"; > parms.output = "xml"; > > var token:AsyncToken = this.send( parms ); > token.addResponder( this ); > } > > public function result(obj:Object):void{ > > } > > public function fault(obj:Object):void{ > > } > } --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
