Packagecom.adobe.mediacore.events
Classpublic class AudioChangeEvent
InheritanceAudioChangeEvent Inheritance flash.events.Event

An AudioChangeEvent is dispatched when the audio properties of a MediaPlayer change



Public Properties
 PropertyDefined By
  audioPan : Number
[read-only] New pan value resulting from this change.
AudioChangeEvent
  muted : Boolean
[read-only] New muted value resulting from this change.
AudioChangeEvent
  volume : Number
[read-only] New volume value resulting from this change.
AudioChangeEvent
Public Methods
 MethodDefined By
  
AudioChangeEvent(type:String, bubbles:Boolean, cancelable:Boolean, muted:Boolean = false, volume:Number, pan:Number)
Constructor.
AudioChangeEvent
  
clone():Event
[override]
AudioChangeEvent
Public Constants
 ConstantDefined By
  PAN_CHANGE : String = panChange
[static] The AudioChangeEvent.PAN_CHANGE constant defines the value of the type property of the event object for a panChange event.
AudioChangeEvent
  VOLUME_CHANGE : String = volumeChange
[static] The AudioChangeEvent.VOLUME_CHANGE constant defines the value of the type property of the event object for a volumeChange event.
AudioChangeEvent
Property Detail
audioPanproperty
audioPan:Number  [read-only]

New pan value resulting from this change.


Implementation
    public function get audioPan():Number
mutedproperty 
muted:Boolean  [read-only]

New muted value resulting from this change.


Implementation
    public function get muted():Boolean
volumeproperty 
volume:Number  [read-only]

New volume value resulting from this change.


Implementation
    public function get volume():Number
Constructor Detail
AudioChangeEvent()Constructor
public function AudioChangeEvent(type:String, bubbles:Boolean, cancelable:Boolean, muted:Boolean = false, volume:Number, pan:Number)

Constructor.

Parameters
type:String — The type of the event.
 
bubbles:Boolean — Specifies whether the event can bubble up the display list hierarchy.
 
cancelable:Boolean — Specifies whether the behavior associated with the event can be prevented.
 
muted:Boolean (default = false) — The value of the muted property.
 
volume:Number (default = NaN) — The value of the volume property.
 
pan:Number (default = NaN) — The value of the pan property.
Method Detail
clone()method
override public function clone():Event

Returns
Event
Constant Detail
PAN_CHANGEConstant
public static const PAN_CHANGE:String = panChange

The AudioChangeEvent.PAN_CHANGE constant defines the value of the type property of the event object for a panChange event.

VOLUME_CHANGEConstant 
public static const VOLUME_CHANGE:String = volumeChange

The AudioChangeEvent.VOLUME_CHANGE constant defines the value of the type property of the event object for a volumeChange event.