Startvibrate Fscommand2 Command; Stopvibrate Fscommand2 Command - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

StartVibrate fscommand2 Command

StartVibrate
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
the Flash Lite player quits.
Command
Parameters
StartVibrate
time_on
milliseconds (to a maximum of 5
seconds), that the vibration is on.
time_off Amount of time, in
milliseconds (to a maximum of 5
seconds), that the vibration is off.
repeat Number of times (to a
maximum of 3) to repeat this
vibration.
Availability: ActionScript 1.0; Flash Lite 1.1
Example
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
fscommand2("StartVibrate", 2500, 1000, 2);

StopVibrate fscommand2 Command

StopVibrate
Stops the current vibration, if any.
Command
Parameters
StopVibrate
None
Availability: ActionScript 1.0; Flash Lite 1.1
Example
The following example calls
stopped) in the
status
status = fscommand2("StopVibrate");
Amount of time, in
status
and saves the result (not supported or vibration
StopVibrate
variable:
Value Returned
: Not supported.
-1
started.
: An error occurred and
1
vibration could not be started.
variable that indicates success or failure:
Value Returned
: Not supported.
-1
stopped.
fscommand2 Commands
: Vibration was
0
: The vibration
0
243

Advertisement

Table of Contents
loading

Table of Contents