Packagecom.distriqt.extension.mediaplayer.events
Classpublic class AudioPlayerEvent
InheritanceAudioPlayerEvent Inheritance flash.events.Event



Public Properties
 PropertyDefined By
  current : Number = 0
The current position in the media, in seconds
AudioPlayerEvent
  total : Number = 0
The total duration of the media in seconds.
AudioPlayerEvent
Public Methods
 MethodDefined By
  
AudioPlayerEvent(type:String, current:Number = 0, total:Number = 0, bubbles:Boolean = false, cancelable:Boolean = false)
AudioPlayerEvent
  
clone():Event
[override]
AudioPlayerEvent
Public Constants
 ConstantDefined By
  AUDIO_BECOMING_NOISY : String = audioplayer:audiobecomingnoisy
[static] Dispatched when the application audio would become "noisy", for example the headphones were removed and play would continue through the device speakers.
AudioPlayerEvent
  COMPLETE : String = audioplayer:complete
[static]
AudioPlayerEvent
  INTERRUPTION_END : String = audioplayer:interruption:end
[static] Dispatched when the interruption that occurred is completed and you can resume audio playback if you required.
AudioPlayerEvent
  INTERRUPTION_START : String = audioplayer:interruption:start
[static] Dispatched when an interruption occurred such as receiving a phone call.
AudioPlayerEvent
  LOADED : String = audioplayer:loaded
[static] Dispatched when the audio player completed loading from the source
AudioPlayerEvent
  LOADING : String = audioplayer:loading
[static] Dispatched when the audio player commenced loading from the source
AudioPlayerEvent
  PAUSED : String = audioplayer:paused
[static]
AudioPlayerEvent
  PLAYING : String = audioplayer:playing
[static]
AudioPlayerEvent
Property Detail
currentproperty
public var current:Number = 0

The current position in the media, in seconds

totalproperty 
public var total:Number = 0

The total duration of the media in seconds.

Constructor Detail
AudioPlayerEvent()Constructor
public function AudioPlayerEvent(type:String, current:Number = 0, total:Number = 0, bubbles:Boolean = false, cancelable:Boolean = false)



Parameters
type:String
 
current:Number (default = 0)
 
total:Number (default = 0)
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
Method Detail
clone()method
override public function clone():Event

Returns
Event
Constant Detail
AUDIO_BECOMING_NOISYConstant
public static const AUDIO_BECOMING_NOISY:String = audioplayer:audiobecomingnoisy

Dispatched when the application audio would become "noisy", for example the headphones were removed and play would continue through the device speakers. The extension will pause the audio automatically and if you want to continue playing you should call play on your player.

COMPLETEConstant 
public static const COMPLETE:String = audioplayer:complete

INTERRUPTION_ENDConstant 
public static const INTERRUPTION_END:String = audioplayer:interruption:end

Dispatched when the interruption that occurred is completed and you can resume audio playback if you required.

INTERRUPTION_STARTConstant 
public static const INTERRUPTION_START:String = audioplayer:interruption:start

Dispatched when an interruption occurred such as receiving a phone call. Playback will be stopped until the interruption is complete

LOADEDConstant 
public static const LOADED:String = audioplayer:loaded

Dispatched when the audio player completed loading from the source

LOADINGConstant 
public static const LOADING:String = audioplayer:loading

Dispatched when the audio player commenced loading from the source

PAUSEDConstant 
public static const PAUSED:String = audioplayer:paused

PLAYINGConstant 
public static const PLAYING:String = audioplayer:playing