ActionScript APIs

While the BlackBerry Tablet OS SDK for Adobe AIR extends the Adobe ActionScript API in many important areas, you must use the ActionScript 3.0 APIs for data storage, networking, and device sensor functions. The following table lists some resources that you can use to learn more about ActionScript APIs.

You must explicitly request permission from your user to use device sensors. For more information, see Accessing restricted functionality.

Component

Description

Data storage

The BlackBerry Tablet OS supports the following approaches to data storage

  • Local shared object (in the flash.net.SharedObject package)
  • Encrypted local store (in the flash.data.EncryptedLocalStore package)
  • File system (in the flash.filesystem package)
  • SQLite (in the flash.data package)

Network communication

You can use the flash.net package to send and receive data over a network connection.

Accelerometer

You can use the flash.sensors.Accelerometer class to register an event listener for accelerometer events. The BlackBerry Tablet OS reports movement in three perpendicular planes relative to the device.

Geolocation

You can use the flash.sensors.Geolocation class to register an event listener that processes changes in the location of the device.

For more information, see the ActionScript 3.0 Reference for the Adobe Flash Platform.