Hi. This is just from the sample AIR app code...
private function onMapClick(event:MapMouseEvent):void {
var file:File = File.documentsDirectory.resolvePath("airTest/
locations.txt");
var fileStream:FileStream = new FileStream();
fileStream.open(file, FileMode.APPEND);
fileStream.writeUTF(event.latlng.toString());
fileStream.writeUTF("\n");
fileStream.close();
}
Couldn't get it to work...i think the line 3 from the
bottom...fileStream.writeUTF(event.latlng.toString()); the word latlng
should be latLng ie capital "L"
After I altered it the app worked.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---