Flash Lite 1.x ActionScript Language Reference |
|
|
|
| Flash Lite Specific Language Elements > fscommand2() > StartVibrate | |||
Flash Lite 1.1.
Starts the phone's vibration feature. If a vibration is already occurring, Flash Lite stops that vibration before starting the new one. Vibrations also stop when playback of the Flash application is stopped or paused, and when Flash Lite player quits.
|
Command |
Parameters |
Value returned |
|---|---|---|
|
|
|
-1: Not supported. 0: Vibration was started. 1: An error occurred and vibration could not be started. |
The following example attempts to start a vibration sequence of 2.5 seconds on, 1 second off, repeated twice. It assigns a value to the status variable that indicates success or failure.
status = fscommand2("StartVibrate", 2500, 1000, 2);
|
|
|
|