MACROMEDIA FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE Reference page 155

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

Advertisement

StartVibrate
Availability
Flash Lite 1.1.
Description
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
"StartVibrate"
time_on
maximum of 5 seconds), that the vibration is on.
time_off
maximum of 5 seconds), that the vibration is off.
repeat
repeat this vibration.
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
status = fscommand2("StartVibrate", 2500, 1000, 2);
See also
StopVibrate
StopVibrate
Availability
Flash Lite 1.1.
Description
Stops the current vibration, if any.
Command
"StopVibrate"
Amount of time, in milliseconds (to a
Amount of time, in milliseconds (to a
Number of times (to a maximum of 3) to
variable that indicates success or failure.
status
Parameters
None.
Value returned
-1: Not supported.
0: Vibration was started.
1: An error occurred and
vibration could not
be started.
Value returned
-1: Not supported.
0: The vibration stopped.
fscommand2()
155

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Table of Contents