Being that most Android devices are mobile, the ability to tap into some sort of mapping is expected by both developers and users. The Android OS is managed by Google, and the company has a long history of great mapping technologies on the web. This is great for developers because we can piggyback on the very cool Maps application on Android and pass in all sorts of coordinates from our application.
Have the application detect the device geolocation coordinates, invoke navigateToURL,
and pass in a new URLRequest
with a correctly formatted URL to access the Android maps application:
1. First, import the following classes into your project:
import flash.display.Sprite; import flash.display.StageAlign; import flash.display.StageScaleMode; import flash.events.TouchEvent; import flash.events.GeolocationEvent; import flash.text.TextField; import flash.text.TextFormat; import flash.net.navigateToURL; import flash.net.URLRequest; import flash...