Flash Lite 2.x and 3.0 ActionScript Language Reference

GetVolumeLevel fscommand2 Command

GetVolumeLevel

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