Packagecom.adobe.mediacore.events
Classpublic class AdPlaybackEvent
InheritanceAdPlaybackEvent Inheritance flash.events.Event

Event dispatched when the player plays an ad.



Public Properties
 PropertyDefined By
  ad : Ad
[read-only] The ad
AdPlaybackEvent
  adBreak : AdBreak
[read-only] The ad
AdPlaybackEvent
  progress : Number
[read-only] The progress made in the ad.
AdPlaybackEvent
  rate : Number
[read-only] The current playback rate of the ad.
AdPlaybackEvent
  time : Number
[read-only] The time of the ad, relative to the ad's 0 based timeline.
AdPlaybackEvent
Public Methods
 MethodDefined By
  
AdPlaybackEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, adBreak:AdBreak = null, ad:Ad = null, progress:Number = 0, time:Number = 0, rate:Number = 1.0)
Default constructor.
AdPlaybackEvent
  
clone():Event
[override]
AdPlaybackEvent
Public Constants
 ConstantDefined By
  AD_COMPLETED : String = adComplete
[static] Dispatched when the ad playback is completed.
AdPlaybackEvent
  AD_PROGRESS : String = adProgress
[static] Dispatched during ad playback to report the playback progress.
AdPlaybackEvent
  AD_SEEK : String = adSeek
[static] Dispatched when a seek occurs across ad boundaries or within an ad.
AdPlaybackEvent
  AD_STARTED : String = adStart
[static] Dispatched when the ad has started.
AdPlaybackEvent
Property Detail
adproperty
ad:Ad  [read-only]

The ad


Implementation
    public function get ad():Ad
adBreakproperty 
adBreak:AdBreak  [read-only]

The ad


Implementation
    public function get adBreak():AdBreak
progressproperty 
progress:Number  [read-only]

The progress made in the ad. The percentage is represented by a fractional number.


Implementation
    public function get progress():Number
rateproperty 
rate:Number  [read-only]

The current playback rate of the ad.


Implementation
    public function get rate():Number
timeproperty 
time:Number  [read-only]

The time of the ad, relative to the ad's 0 based timeline.


Implementation
    public function get time():Number
Constructor Detail
AdPlaybackEvent()Constructor
public function AdPlaybackEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, adBreak:AdBreak = null, ad:Ad = null, progress:Number = 0, time:Number = 0, rate:Number = 1.0)

Default constructor.

Parameters
type:String
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
 
adBreak:AdBreak (default = null)
 
ad:Ad (default = null)
 
progress:Number (default = 0)
 
time:Number (default = 0)
 
rate:Number (default = 1.0)
Method Detail
clone()method
override public function clone():Event

Returns
Event
Constant Detail
AD_COMPLETEDConstant
public static const AD_COMPLETED:String = adComplete

Dispatched when the ad playback is completed.

AD_PROGRESSConstant 
public static const AD_PROGRESS:String = adProgress

Dispatched during ad playback to report the playback progress.

AD_SEEKConstant 
public static const AD_SEEK:String = adSeek

Dispatched when a seek occurs across ad boundaries or within an ad.

AD_STARTEDConstant 
public static const AD_STARTED:String = adStart

Dispatched when the ad has started.