![MACROMEDIA FLASH 8-FLASH Скачать руководство пользователя страница 155](http://html2.mh-extra.com/html/macromedia/flash-8-flash/flash-8-flash_reference_3347197155.webp)
fscommand2()
155
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.
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
variable that indicates success or failure.
status = fscommand2("StartVibrate", 2500, 1000, 2);
See also
StopVibrate
StopVibrate
Availability
Flash Lite 1.1.
Description
Stops the current vibration, if any.
Command
Parameters
Value returned
"StartVibrate"
time_on
Amount of time, in 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.
-1: Not supported.
0: Vibration was started.
1: An error occurred and
vibration could not
be started.
Command
Parameters
Value returned
"StopVibrate"
None.
-1: Not supported.
0: The vibration stopped.
Содержание FLASH 8-FLASH
Страница 1: ...Flash Lite 1 x ActionScript Language Reference...
Страница 6: ...6 Contents...
Страница 46: ...46 Flash Lite Global Functions...
Страница 62: ...62 Flash Lite Properties...
Страница 76: ...76 Flash Lite Statements...
Страница 110: ...110 Flash Lite Operators...
Страница 162: ...162 Index...