User Guide
538 Chapter 6: Components Dictionary
Description
Event; broadcast when the volume value is adjusted by the user. The Media.volume event object
has the following properties:
detail An integer between 0 and 100 that represents the volume level.
type The string "volume".
Example
The following example informs the user that the volume is being adjusted:
var myVolListener = new Object();
myVolListener.volume = function(){
mytextfield.text = "Volume adjusted!";
}
myMedia.addEventListener("volume", myVolListener);
See also
Media.volume