GetVolumeLevel fscommand2 Command

GetVolumeLevel

Personalized wallpapers and screensavers for mobile phones

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

Command
GetVolumeLevel

Parameters
None

Value Returned
-1: Not supported. Other numeric values: The current volume level, ranging from 0 to the value returned by fscommand2("GetMaxVolumeLevel").

Availability: ActionScript 1.0; Flash Lite 1.1

Example

The following example assigns the current volume level to the volume variable:
volume = fscommand2("GetVolumeLevel");
trace (volume); // output: 50

Back to home