Packagecom.adobe.mediacore.events
Classpublic class AdBreakPlaybackEvent
InheritanceAdBreakPlaybackEvent Inheritance flash.events.Event

Event dispatched by media player whenever an ad break starts or completes. The associated ad break is exposed through the ad break property of the event.

See also

com.adobe.mediacore.timeline.advertising.AdBreak


Public Properties
 PropertyDefined By
  adBreak : AdBreak
[read-only] The associated ad break information.
AdBreakPlaybackEvent
Public Methods
 MethodDefined By
  
AdBreakPlaybackEvent(type:String, bubbles:Boolean, cancelable:Boolean, adBreak:AdBreak)
Default constructor.
AdBreakPlaybackEvent
  
clone():Event
[override]
AdBreakPlaybackEvent
  
create(type:String, adBreak:AdBreak):AdBreakPlaybackEvent
[static] Factory method for creating AdBreakPlaybackEvent.
AdBreakPlaybackEvent
Public Constants
 ConstantDefined By
  AD_BREAK_COMPLETED : String = adBreakCompleted
[static] Event dispatched when an ad break completes.
AdBreakPlaybackEvent
  AD_BREAK_SKIPPED : String = adBreakSkipped
[static] Event dispatched when an ad break is skipped during playback.
AdBreakPlaybackEvent
  AD_BREAK_STARTED : String = adBreakStarted
[static] Event dispatched when an ad break starts.
AdBreakPlaybackEvent
Property Detail
adBreakproperty
adBreak:AdBreak  [read-only]

The associated ad break information.


Implementation
    public function get adBreak():AdBreak
Constructor Detail
AdBreakPlaybackEvent()Constructor
public function AdBreakPlaybackEvent(type:String, bubbles:Boolean, cancelable:Boolean, adBreak:AdBreak)

Default constructor. Throws an ArgumentError if the specified ad break is null.

Parameters
type:String — The type of the event.
 
bubbles:Boolean — Determines whether the Event object participates in the bubbling stage of the event flow.
 
cancelable:Boolean — Determines whether the Event object can be canceled.
 
adBreak:AdBreak — The associated ad break.
Method Detail
clone()method
override public function clone():Event

Returns
Event
create()method 
public static function create(type:String, adBreak:AdBreak):AdBreakPlaybackEvent

Factory method for creating AdBreakPlaybackEvent. Throws an ArgumentError if the specified ad break is null.

Parameters

type:String — The type of event.
 
adBreak:AdBreak — The associated ad break.

Returns
AdBreakPlaybackEvent — a valid AdBreakPlaybackEvent instance.
Constant Detail
AD_BREAK_COMPLETEDConstant
public static const AD_BREAK_COMPLETED:String = adBreakCompleted

Event dispatched when an ad break completes.

AD_BREAK_SKIPPEDConstant 
public static const AD_BREAK_SKIPPED:String = adBreakSkipped

Event dispatched when an ad break is skipped during playback.

AD_BREAK_STARTEDConstant 
public static const AD_BREAK_STARTED:String = adBreakStarted

Event dispatched when an ad break starts.