Packagecom.distriqt.extension.adverts.events
Classpublic class AdViewEvent
InheritanceAdViewEvent 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.
AdViewEvent
Public Methods
 MethodDefined By
  
AdViewEvent(type:String, errorCode:int = -1, bubbles:Boolean = false, cancelable:Boolean = false)
AdViewEvent
  
clone():Event
[override]
AdViewEvent
Public Constants
 ConstantDefined By
  CLOSED : String = adview:closed
[static] When a user returns to the app after viewing an ad's destination URL, this event is dispatched.
AdViewEvent
  ERROR : String = adview:error
[static] Dispatched if the ad failed to load.
AdViewEvent
  LOADED : String = adview:loaded
[static] This event is dispatched when an ad has finished loading.
AdViewEvent
  OPENED : String = adview:opened
[static] This event is dispatched when an ad opens an overlay that covers the screen..
AdViewEvent
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
AdViewEvent()Constructor
public function AdViewEvent(type:String, errorCode:int = -1, bubbles:Boolean = false, cancelable:Boolean = false)



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
CLOSEDConstant
public static const CLOSED:String = adview:closed

When a user returns to the app after viewing an ad's destination URL, this event is dispatched. Your app can use it to resume suspended activities or perform any other work necessary to make itself ready for interaction.

ERRORConstant 
public static const ERROR:String = adview:error

Dispatched if the ad failed to load.

LOADEDConstant 
public static const LOADED:String = adview: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.

OPENEDConstant 
public static const OPENED:String = adview:opened

This event is dispatched when an ad opens an overlay that covers the screen..