I am having trouble getting the panTo code (http://code.google.com/
apis/maps/documentation/flash/basics.html) to work correctly in Flash
CS3.
private function onMapReady(event:MapEvent):void {
setCenter(new LatLng(37.4419, -122.1419), 13,
MapType.NORMAL_MAP_TYPE);
myTimer = new Timer(1000, 1);
myTimer.addEventListener("timer", timedFunction);
myTimer.start();
}
private function timedFunction(eventArgs:TimerEvent):void {
panTo(new LatLng(37.4569, -122.1569));
}
I receive the following error when inputting this code into my flash
document:
"1013: The private attribute may be used only on class property
definitions."
I have done a little reading and it appears I need to declare a class
when using "private". I tried to get rid of "private" to see if this
would work and only received the following error:
"1021: Duplicate function definition."
How do I get this code to work correctly in Flash CS3?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---