(Beta)
Package | flash.events |
Class | public class AudioOutputChangeEvent |
Inheritance | AudioOutputChangeEvent Event Object |
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 27, AIR 28 |
This event fires when user selects a different audio output device from Flash Player's settings UI, or an audio device gets added to / removed from the system.
Public Properties
Property | Defined By | ||
---|---|---|---|
bubbles : Boolean [read-only]
Indicates whether an event is a bubbling event. | Event | ||
cancelable : Boolean [read-only]
Indicates whether the behavior associated with the event can be prevented. | Event | ||
constructor : Object
A reference to the class object or constructor function for a given object instance. | Object | ||
currentTarget : Object [read-only]
The object that is actively processing the Event object with an event listener. | Event | ||
eventPhase : uint [read-only]
The current phase in the event flow. | Event | ||
reason : String [read-only]
Reports the reason that triggers this AudioOutputchangeEvent. | AudioOutputChangeEvent | ||
target : Object [read-only]
The event target. | Event | ||
type : String [read-only]
The type of event. | Event |
Public Methods
Method | Defined By | ||
---|---|---|---|
AudioOutputChangeEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, reason:String = null)
Constructor.
| AudioOutputChangeEvent | ||
Duplicates an instance of an Event subclass. | Event | ||
A utility function for implementing the toString() method in custom
ActionScript 3.0 Event classes. | Event | ||
Indicates whether an object has a specified property defined. | Object | ||
Checks whether the preventDefault() method has been called on the event. | Event | ||
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | ||
Cancels an event's default behavior if that behavior can be canceled. | Event | ||
Indicates whether the specified property exists and is enumerable. | Object | ||
Sets the availability of a dynamic property for loop operations. | Object | ||
Prevents processing of any event listeners in the current node and any subsequent nodes in
the event flow. | Event | ||
Prevents processing of any event listeners in nodes subsequent to the current node in the
event flow. | Event | ||
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
Returns a string containing all the properties of the Event object. | Event | ||
Returns the primitive value of the specified object. | Object |
Public Constants
Constant | Defined By | ||
---|---|---|---|
AUDIO_OUTPUT_CHANGE : String = "audioOutputChange" [static]
Defines the value of the type property of a AudioOutputchangeEvent event object. | AudioOutputChangeEvent |
Property Detail
reason | property |
Constructor Detail
AudioOutputChangeEvent | () | Constructor |
public function AudioOutputChangeEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, reason:String = null)
Constructor.
Parameterstype:String — The type of event. There is only one type of AudioOutputchangeEvent event:
AudioOutputchangeEvent.AUDIO_OUTPUT_CHANGE .
| |
bubbles:Boolean (default = false ) — Indicates whether this Event object participates in the bubbling stage of the event flow.
| |
cancelable:Boolean (default = false ) — Indicates whether you can cancel the action that triggers this event.
| |
reason:String (default = null ) — The reason that triggers the audio output change event.
AudioOutputChangeReason.USER_SELECTION , indicates that the audio output change
is initiated by the user selecting a different device from Flash Player Settings UI.
AudioOutputChangeReason.DEVICE_CHANGE , indicates that audio device has either changed,
added or removed.
|
Constant Detail
AUDIO_OUTPUT_CHANGE | Constant |
public static const AUDIO_OUTPUT_CHANGE:String = "audioOutputChange"
Defines the value of the type
property of a AudioOutputchangeEvent
event object.
Wed Nov 21 2018, 06:34 AM -08:00