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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Note: The remapping of soft keys depends on the mobile device. Check with the device<br />

manufacturer to see if the remapping of soft keys is supported.<br />

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

SetSoftKeys soft1 Text to be displayed for the SOFT1 soft<br />

key. soft2 Text to be displayed for the SOFT2<br />

soft key.<br />

These parameters are either names of<br />

variables or constant string values (for<br />

example, "Previous").<br />

Example<br />

The following example labels the SOFT1 soft key "Previous" <strong>and</strong> the SOFT2 soft key "Next":<br />

status = fscomm<strong>and</strong>2("SetSoftKeys", "Previous", "Next");<br />

You can define variables or use constant string values for each soft key:<br />

status = fscomm<strong>and</strong>2("SetSoftKeys", soft1, soft2, [soft3], [soft4], ...,<br />

[softn])<br />

Note: You can set one soft key without setting the others. These examples show the syntax<br />

<strong>and</strong> behavior of setting a specific soft key without affecting other keys:<br />

■ To set the left soft key label to "soft1" <strong>and</strong> the right soft key to empty:<br />

status = fscomm<strong>and</strong>2("SetSoftKeys", "soft1", "")<br />

■ To leave the label for the left soft key as is <strong>and</strong> set right soft key to "soft2":<br />

status = fscomm<strong>and</strong>2("SetSoftKeys", undefined, "soft2")<br />

■ To leave the label for the left soft key as is <strong>and</strong> set the right soft key to "soft2":<br />

status = fscomm<strong>and</strong>2("SetSoftKeys", null, "soft2")<br />

■ To set the left soft key label to "soft1" <strong>and</strong> leave the right soft key as is:<br />

status = fscomm<strong>and</strong>2("SetSoftKeys", "soft1")<br />

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

StartVibrate<br />

Starts the phone's vibration feature.<br />

226 ActionScript language elements<br />

-1: Not supported.<br />

0: <strong>Support</strong>ed.

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

Saved successfully!

Ooh no, something went wrong!