Package | com.distriqt.extension.adverts.events |
Class | public class InterstitialAdEvent |
Inheritance | InterstitialAdEvent flash.events.Event |
Property | Defined By | ||
---|---|---|---|
errorCode : int = -1
The error code is usually ERROR_CODE_INTERNAL_ERROR, ERROR_CODE_INVALID_REQUEST, ERROR_CODE_NETWORK_ERROR, or ERROR_CODE_NO_FILL. | InterstitialAdEvent |
Method | Defined By | ||
---|---|---|---|
InterstitialAdEvent(type:String, errorCode:int = -1, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor
| InterstitialAdEvent | ||
clone():Event [override] | InterstitialAdEvent |
Constant | Defined By | ||
---|---|---|---|
ERROR : String = interstitial:error [static]
Dispatched if the ad failed to load. | InterstitialAdEvent | ||
LOADED : String = interstitial:loaded [static]
This event is dispatched when an ad has finished loading. | InterstitialAdEvent |
errorCode | property |
public var errorCode:int = -1
The error code is usually ERROR_CODE_INTERNAL_ERROR, ERROR_CODE_INVALID_REQUEST, ERROR_CODE_NETWORK_ERROR, or ERROR_CODE_NO_FILL.
See also
InterstitialAdEvent | () | Constructor |
public function InterstitialAdEvent(type:String, errorCode:int = -1, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor
Parameterstype:String | |
errorCode:int (default = -1 )
| |
bubbles:Boolean (default = false )
| |
cancelable:Boolean (default = false )
|
clone | () | method |
override public function clone():Event
ReturnsEvent |
ERROR | Constant |
public static const ERROR:String = interstitial:error
Dispatched if the ad failed to load.
LOADED | Constant |
public static const LOADED:String = interstitial:loaded
This event is dispatched when an ad has finished loading.
If you want to delay displaying an ad until you're sure an ad will be loaded you should wait for this event before adding the view.