The Android Market is unique to the Android platform and there is a dedicated application which allows users to easily search for, find, and install applications on their devices. Android allows a developer to tap into the Market application by passing in certain search terms.
We will build a small application to invoke navigateToURL
and pass a predefined search term through a URLRequest
object with the market:
URI prefix. This will open the Android Market application and have it perform a search for us. In this example, we will open a new request once a TOUCH_TAP
event is detected:
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.text.TextField; import flash.text.TextFormat; import flash.net.navigateToURL; import flash.net.URLRequest; import flash.ui.Multitouch; import flash...