Hi John- You would need to show more of your code than that for us to know for sure, but I'm guessing that you have a map variable, and you need to call the function on the map variable.
- pamela On Sun, Jul 12, 2009 at 6:00 PM, johnbeardy<[email protected]> wrote: > > I'm trying to add the PanTo sample code (http://code.google.com/apis/ > maps/documentation/flash/basics.html#MapInteractions) to a working > movie. But I'm getting "call to possibly undefined method" on PanTo. > > Should it work in Flash? I think I've imported the correct libraries > (below) and the Google API component is 1_9a from May this year. > > Any ideas? > > John > > > > import com.google.maps.LatLng; > import com.google.maps.LatLngBounds; > import com.google.maps.Map; > import com.google.maps.MapEvent; > import com.google.maps.MapMouseEvent; > import com.google.maps.MapType; > import com.google.maps.interfaces.IMap > > import flash.utils.Timer; > import flash.events.TimerEvent; > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
