MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference page 242

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

Advertisement

For backward compatibility with Flash Lite 1.1, the
left key on the handset, and the
handset. For the
SOFT3
The arguments for this command specify the text to be displayed for the corresponding soft
keys. When the
SetSoftKeys
keypress event, and pressing the right key generates a
through
SOFT3
SOFT12
Note: The remapping of soft keys depends on the mobile device. Check with the device
manufacturer to see if the remapping of soft keys is supported.
Command
Parameters
SetSoftKeys
soft1
SOFT1
displayed for the
These parameters are either names
of variables or constant string values
(for example, "Previous").
Availability: ActionScript 1.0; Flash Lite 1.1
Example
The following example labels the
status = fscommand2("SetSoftKeys", "Previous", "Next");
You can define variables or use constant string values for each soft key:
status = fscommand2("SetSoftKeys", soft1, soft2, [soft3], [soft4], ...,
[softn])
Note: You can set one soft key without setting the others. These examples show the syntax
and behavior of setting a specific soft key without affecting other keys:
To set the left soft key label to "soft1" and the right soft key to empty:
status = fscommand2("SetSoftKeys", "soft1", "")
To leave the label for the left soft key as is and set right soft key to "soft2":
status = fscommand2("SetSoftKeys", undefined, "soft2")
To leave the label for the left soft key as is and set the right soft key to "soft2":
status = fscommand2("SetSoftKeys", null, "soft2")
To set the left soft key label to "soft1" and leave the right soft key as is:
status = fscommand2("SetSoftKeys", "soft1")
242
ActionScript language elements
soft key is always mapped to the right key on the
SOFT2
soft key and higher, the locations are dependent on each handset.
command is executed, pressing the left key generates a
soft keys generates their respective events.
Text to be displayed for the
soft key.
Text to be
soft2
soft key.
SOFT2
soft key "Previous" and the
SOFT1
soft key is always mapped to the
SOFT1
keypress event. Pressing the
SOFT2
Value Returned
-1: Not supported. 0: Supported.
SOFT2
SOFT1
soft key "Next":

Advertisement

Table of Contents
loading

Table of Contents