Packagecom.distriqt.extension.adverts.events
Classpublic class RewardedVideoAdEvent
InheritanceRewardedVideoAdEvent 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.
RewardedVideoAdEvent
  errorMessage : String
RewardedVideoAdEvent
  rewardAmount : int = 0
the amount of credit for a REWARD event
RewardedVideoAdEvent
  rewardType : String
the type of the credit for a REWARD event
RewardedVideoAdEvent
Public Methods
 MethodDefined By
  
RewardedVideoAdEvent(type:String, rewardAmount:int = 0, rewardType:String, errorCode:int = -1, errorMessage:String, bubbles:Boolean = false, cancelable:Boolean = false)
RewardedVideoAdEvent
  
clone():Event
[override]
RewardedVideoAdEvent
Public Constants
 ConstantDefined By
  ERROR : String = rewardedvideoad:error
[static] Dispatched if the ad failed to load.
RewardedVideoAdEvent
  LOADED : String = rewardedvideoad:loaded
[static] This event is dispatched when a rewarded video ad is loaded.
RewardedVideoAdEvent
  REWARD : String = rewardedvideoad:reward
[static] Called when a rewarded video ad has triggered a reward.
RewardedVideoAdEvent
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

errorMessageproperty 
public var errorMessage:String

rewardAmountproperty 
public var rewardAmount:int = 0

the amount of credit for a REWARD event

rewardTypeproperty 
public var rewardType:String

the type of the credit for a REWARD event

Constructor Detail
RewardedVideoAdEvent()Constructor
public function RewardedVideoAdEvent(type:String, rewardAmount:int = 0, rewardType:String, errorCode:int = -1, errorMessage:String, bubbles:Boolean = false, cancelable:Boolean = false)



Parameters
type:String
 
rewardAmount:int (default = 0)
 
rewardType:String
 
errorCode:int (default = -1)
 
errorMessage:String
 
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 = rewardedvideoad:error

Dispatched if the ad failed to load.

LOADEDConstant 
public static const LOADED:String = rewardedvideoad:loaded

This event is dispatched when a rewarded video ad is loaded.

REWARDConstant 
public static const REWARD:String = rewardedvideoad:reward

Called when a rewarded video ad has triggered a reward. The app is responsible for crediting the user with the reward.