GetVolumeLevel

Availability

Flash Lite 1.1.

Description

Returns the current volume level of the device as a numeric value.

Command

Parameters

Value returned

"GetVolumeLevel"

None.

-1: Not supported.

Other numeric values: The current volume level, ranging from 0 to the value returned by fscommand2("GetMaxVolumeLevel").

Example

The following example assigns the current volume level to the volume variable:

volume = fscommand2("GetVolumeLevel");
trace (volume);                                            // output: 50

See also

GetVolumeLevel