Hi, 

The gmaps utility library is definitely where you want to be looking 
(http://code.google.com/p/gmaps-utility-library-flash/). The way we parse 
the coordinates string in that library is to use a regular expression as 
below, where the 'string' variable is the coordinates list you have above. 
Works for any cases I've tested so far. 

var re:RegExp = 
/([-+]?[0-9]*\.?[0-9]*,\s?[-+]?[0-9]*\.?[0-9]*,\s?[-+]?[0-9]*\.?[0-9]*)/g;

 var stringSplit:Array = string.match(re);

var coordsList:Array = new Array();

 for (var i:Number = 0; i < stringSplit.length; i++) {

if (stringSplit[i].length < 5) continue;

var coordinate:Object = new Object();

var coordString:Array = stringSplit[i].split(",");

coordinate.lon = Number(coordString[0]);

coordinate.lat = Number(coordString[1]);

coordinate.alt = Number(coordString[2]);

coordsList.push(coordinate);

  }


Hope that helps, 

Michael

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-api-for-flash/-/fyQkyQDH5OIJ.
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