0
隨着gpson_btn我需要刪除地理更新...如何刪除地理位置事件AS3
gpsoff_btn.addEventListener(MouseEvent.CLICK, geoON);
function geoON(event: Event): void {
if (Geolocation.isSupported) {
var geo = new Geolocation();
geo.setRequestedUpdateInterval(1);
geo.addEventListener(GeolocationEvent.UPDATE, geolocationUpdateHandler);
gpsoff_btn.visible = false;
}
}