protected function button1_clickHandler(event:MouseEvent):void { // TODO Auto-generated method stub if(Geolocation.isSupported) { txt_GPS.text = "GPS Supported"; geocode.setRequestedUpdateInterval(100); geocode.addEventListener(GeolocationEvent.UPDATE,handleLocationRequest); } else { txt_GPS.text = "Not Supported"; } } public function handleLocationRequest(event:GeolocationEvent):void { txt_GPS.text = event.latitude.toString(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)