| Package | com.adobe.mediacore.events |
| Class | public class AdEvent |
| Inheritance | AdEvent flash.events.Event |
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| Constant | Defined 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 | ||
| ad | property |
| adProgress | property |
adProgress:Number [read-only] The progress made in the ad. The percentage is represented by a fractional number.
public function get adProgress():Number| rate | property |
rate:Number [read-only] The current playback rate of the ad.
public function get rate():Number| time | property |
time:Number [read-only] The time of the ad, relative to the ad's 0 based timeline.
public function get time():Number| 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.
Parameterstype: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) |
| clone | () | method |
override public function clone():EventReturns
Event |
| toString | () | method |
override public function toString():StringReturns a String containing the properties of the event
ReturnsString |
| AD_CLICK | Constant |
public static const AD_CLICK:String = adClickDispatched when the ad is clicked during playback.
| AD_COMPLETE | Constant |
public static const AD_COMPLETE:String = adCompleteDispatched when the ad playback is completed.
| AD_PROGRESS | Constant |
public static const AD_PROGRESS:String = adProgressDispatched during ad playback to report the playback progress.
| AD_SEEK | Constant |
public static const AD_SEEK:String = adSeekDispatched when a seek occurs across ad boundaries or within an ad.
| AD_START | Constant |
public static const AD_START:String = adStartDispatched when the ad has started.