Packagecom.distriqt.extension.adverts.events
Classpublic class InterstitialAdEvent
InheritanceInterstitialAdEvent Inheritance flash.events.Event



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
InterstitialAdEvent(type:String, errorCode:int = -1, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor
InterstitialAdEvent
  
clone():Event
[override]
InterstitialAdEvent
Public Constants
 ConstantDefined 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
Property Detail
errorCodeproperty
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

Constructor Detail
InterstitialAdEvent()Constructor
public function InterstitialAdEvent(type:String, errorCode:int = -1, bubbles:Boolean = false, cancelable:Boolean = false)

Constructor

Parameters
type:String
 
errorCode:int (default = -1)
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
Method Detail
clone()method
override public function clone():Event

Returns
Event
Constant Detail
ERRORConstant
public static const ERROR:String = interstitial:error

Dispatched if the ad failed to load.

LOADEDConstant 
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.