I have a browser application and i want to use the Geolocation class. The problem is that i get that error when i try to use Geolocation.isSupported. I have imported the flash.sensors.Geolocation in the file but still get this error.
Any ideas? Thank you
later edit:
i got that error after i tried something like this:
public static function get isGeolocationSupported():Boolean
{
return Geolocation.isSupported;
}
and called this function.
but if i call directly Geolocation.isSupported i get this error:
VerifyError: Error #1014: Class flash.sensors::Geolocation could not
be found.
This feature is supported only on mobile devices. It is not supported on desktop or AIR for TV devices neither on web applications.