I'm finally able to get back to this project and thought I'd post my
solution to this.

        var loader:URLLoader = new URLLoader() ;
        var request:URLRequest = new URLRequest() ;
        request.url = ("http://ajax.googleapis.com/ajax/services/search/local?
q="+searchTerm+"&sll=37.317,-121.9094&v=1.0");
        loader.load(request) ;
        loader.addEventListener(Event.COMPLETE, decodeJSON) ;

where the bit +searchTerm+ is adding in whatever term you want from
whatever you want--like a user input field (var searchTerm =
myInputField.text), or if you have a button 'restaurants', it could be
searchTerm = event.currentTarget.name...etc.

A guy at work sent me info on the ajax search stuff which had that
query string. Since we're already using JSON files elsewhere to
deliver data, it fit well. The JSON libraries are available from Adobe
(free download).
I only get 4 results with that, and another board member sent me this
(I'm thinking it was donbo0130):

&rsz=large should up it to 8 results, but I haven't had time to check
it out yet.

Once I get it fully worked out, I'll post up the whole bit with JSON
decoding function etc.
Any thought from anybody are more than welcome...

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