Flash Lite 2.x and 3.0 ActionScript Language Reference

GetMaxVolumeLevel fscommand2 Command

GetMaxVolumeLevel

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

Command

Parameters

Value Returned

GetMaxVolumeLevel

None

-1: Not supported.
Other values: The maximum volume level.

Example

The following example sets the maxvolume variable to the maximum volume level of the device:

maxvolume = fscommand2("GetMaxVolumeLevel");
trace (maxvolume); // output: 80