var geo:Geolocation = new Geolocation();
geo.addEventListener(GeolocationEvent.UPDATE, geolocationUpdateHandler);
function geolocationUpdateHandler(e:GeolocationEvent):void
{
var altitude:Number = e.altitude;
//Meters Per Second
var mps:Number = e.speed;
//Miles Per Hour
var mph:Number = Math.round( (mps * 360000) / 160934.4 ) );
trace( "altitude:", altitude, "meters per second:", mps, "miles per hour:", mph );
}