Revision: 48643
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 7, 2011 00:08 by adrianparr
Initial Code
var latLngStr:String = "(51.559340379647914, -0.2835899591445923)"; trace(latLngStr); var lat:Number = Number(latLngStr.substring(1, latLngStr.length-1).split(",")[0]); trace(lat); var lng:Number = Number(latLngStr.substring(1, latLngStr.length-1).split(",")[1]); trace(lng); // OUTPUT // (51.559340379647914, -0.2835899591445923) // 51.559340379647914 // -0.2835899591445923
Initial URL
Initial Description
Initial Title
AS3 Get latitude and longitude from a bracketed string
Initial Tags
Initial Language
ActionScript 3