03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

If a vibration is already occurring, Flash Lite stops that vibration before starting the new one.<br />

Vibrations also stop when playback of the Flash application is stopped or paused, <strong>and</strong> when<br />

the Flash Lite player quits.<br />

Comm<strong>and</strong> Parameters Value Returned<br />

StartVibrate time_on Amount of time, in milliseconds<br />

(to a maximum of 5 seconds), that the<br />

vibration is on.<br />

time_off Amount of time, in milliseconds<br />

(to a maximum of 5 seconds), that the<br />

vibration is off.<br />

repeat Number of times (to a maximum of<br />

3) to repeat this vibration.<br />

Example<br />

The following example attempts to start a vibration sequence of 2.5 seconds on, 1 second off,<br />

repeated twice. It assigns a value to the status variable that indicates success or failure:<br />

fscomm<strong>and</strong>2("StartVibrate", 2500, 1000, 2);<br />

StopVibrate fscomm<strong>and</strong>2 Comm<strong>and</strong><br />

StopVibrate<br />

Stops the current vibration, if any.<br />

-1: Not supported.<br />

0: Vibration was started.<br />

1: An error occurred <strong>and</strong><br />

vibration could not be started.<br />

Comm<strong>and</strong> Parameters Value Returned<br />

StopVibrate None -1: Not supported.<br />

0: The vibration stopped.<br />

Example<br />

The following example calls StopVibrate <strong>and</strong> saves the result (not supported or vibration<br />

stopped) in the status variable:<br />

status = fscomm<strong>and</strong>2("StopVibrate");<br />

fscomm<strong>and</strong>2 Comm<strong>and</strong>s 227

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!