Packagecom.adobe.mediacore.events
Classpublic class AdEvent
InheritanceAdEvent Inheritance flash.events.Event

Event dispatched when the player plays an ad.



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

The ad


Implementation
    public function get ad():Ad
adProgressproperty 
adProgress:Number  [read-only]

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


Implementation
    public function get adProgress():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
AdEvent()Constructor
public function AdEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, 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)
 
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
toString()method 
override public function toString():String

Returns a String containing the properties of the event

Returns
String
Constant Detail
AD_CLICKConstant
public static const AD_CLICK:String = adClick

Dispatched when the ad is clicked during playback.

AD_COMPLETEConstant 
public static const AD_COMPLETE: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_STARTConstant 
public static const AD_START:String = adStart

Dispatched when the ad has started.