Packagecom.tapjoy.extensions
Classpublic class TJCurrencyEvent
InheritanceTJCurrencyEvent Inheritance flash.events.Event



Public Properties
 PropertyDefined By
  balance : int
[read-only] The currency balance returned by the event.
TJCurrencyEvent
  currencyName : String
[read-only] The currency name returned by the event.
TJCurrencyEvent
Public Methods
 MethodDefined By
  
TJCurrencyEvent(type:String, pCurrencyName:String, pBalance:int, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a TapjoyCurrencyEvent object to pass as a parameter to event listeners.
TJCurrencyEvent
Public Constants
 ConstantDefined By
  AWARD_CURRENCY_FAILURE : String = AWARD_CURRENCY_FAILURE
[static]
TJCurrencyEvent
  AWARD_CURRENCY_SUCCESS : String = AWARD_CURRENCY_SUCCESS
[static]
TJCurrencyEvent
  GET_CURRENCY_BALANCE_FAILURE : String = GET_CURRENCY_BALANCE_FAILURE
[static]
TJCurrencyEvent
  GET_CURRENCY_BALANCE_SUCCESS : String = GET_CURRENCY_BALANCE_SUCCESS
[static]
TJCurrencyEvent
  SPEND_CURRENCY_FAILURE : String = SPEND_CURRENCY_FAILURE
[static]
TJCurrencyEvent
  SPEND_CURRENCY_SUCCESS : String = SPEND_CURRENCY_SUCCESS
[static]
TJCurrencyEvent
Property Detail
balanceproperty
balance:int  [read-only]

The currency balance returned by the event.


Implementation
    public function get balance():int
currencyNameproperty 
currencyName:String  [read-only]

The currency name returned by the event.


Implementation
    public function get currencyName():String
Constructor Detail
TJCurrencyEvent()Constructor
public function TJCurrencyEvent(type:String, pCurrencyName:String, pBalance:int, bubbles:Boolean = false, cancelable:Boolean = false)

Creates a TapjoyCurrencyEvent object to pass as a parameter to event listeners.

Parameters
type:String — The type of the event, accessible as TapjoyCurrencyEvent.type.
 
pCurrencyName:String — The name of the currency that the event is returning.
 
pBalance:int — The currency balance after currency event.
 
bubbles:Boolean (default = false) — Determines whether the Event object participates in the bubbling stage of the event flow. The default value is false.
 
cancelable:Boolean (default = false) — Determines whether the Event object can be canceled. The default value is false.
Constant Detail
AWARD_CURRENCY_FAILUREConstant
public static const AWARD_CURRENCY_FAILURE:String = AWARD_CURRENCY_FAILURE

AWARD_CURRENCY_SUCCESSConstant 
public static const AWARD_CURRENCY_SUCCESS:String = AWARD_CURRENCY_SUCCESS

GET_CURRENCY_BALANCE_FAILUREConstant 
public static const GET_CURRENCY_BALANCE_FAILURE:String = GET_CURRENCY_BALANCE_FAILURE

GET_CURRENCY_BALANCE_SUCCESSConstant 
public static const GET_CURRENCY_BALANCE_SUCCESS:String = GET_CURRENCY_BALANCE_SUCCESS

SPEND_CURRENCY_FAILUREConstant 
public static const SPEND_CURRENCY_FAILURE:String = SPEND_CURRENCY_FAILURE

SPEND_CURRENCY_SUCCESSConstant 
public static const SPEND_CURRENCY_SUCCESS:String = SPEND_CURRENCY_SUCCESS