VolumeControl

Kind of class: public class
Package:
Inherits from:
  • Sprite
Author: John Polacek, john@johnpolacek.com
Classpath: com.johnpolacek.ui.VolumeControl
File last modified: Friday, 12 November 2010, 15:34:14
Volume Control UI Component
Events broadcasted to listeners
  • UIEvent.VOLUME_ADJUST # Transmits volume percentage value (from 0 to 1) on user interaction

Summary

Constructor
  • VolumeControl (w:Number, h:Number, backgroundColor:uint = 0x000000, buttonColor:uint = 0xFFFFFF)
Instance methods

Constructor

VolumeControl

function VolumeControl(w:Number, h:Number, backgroundColor:uint = 0x000000, buttonColor:uint = 0xFFFFFF)
Parameters
 

Instance methods

setVolume

function setVolume(v:Number) : void

Sets volume

Parameters
v:Volume level between 0 (mute) and 1 (max)