Flash Lite 2.x and 3.0 ActionScript Language Reference

GetSoftKeyLocation fscommand2 Command

GetSoftKeyLocation

Returns a value that indicates the location of soft keys on the device.

Command

Parameters

Value Returned

GetSoftKeyLocation

None

-1: Not supported.
0: Soft keys on top.
1: Soft keys on left.
2: Soft keys on bottom.
3: Soft keys on right.

Example

The following example sets the status variable to indicate the soft key location, or to -1 if soft keys are not supported on the device:

status = fscommand2("GetSoftKeyLocation");