import flash.sensors.Geolocation;
import flash.events.GeolocationEvent;
var geo:Geolocation = new Geolocation();
geo.addEventListener(GeolocationEvent.UPDATE, onGeo);
function onGeo(e:GeolocationEvent):void
{
t.text = e.longitude + " : " + e.latitude;
}