Note: By clicking the download link for any source examples on this page, you acknowledge that you have read and agree to the Adobe AIR SDK License Agreement. These files are considered Sample Code.
Note: Adobe recommends using the next version of Flash Builder for developing native extensions for Adobe AIR. Sign up now to get access to the prerelease of Flash Builder 4.6.
The Vibration class is a native extension for Adobe AIR. It allows AIR application developers, from ActionScript, to use the vibration feature of an Android or iOS mobile device.
The attached ZIP file contains:
The ActionScript library contains the Vibration class. The Vibration class provides the AIR application this public property and method:
The AIR application can create many instances of the Vibration class. However, the Vibration class creates only one ExtensionContext class instance that all the Vibration instances share.
To use the Vibration extension, an AIR application does the following:
For example:
| 欢迎光临 守望者--AIR技术交流 (http://www.airmyth.com/) |