Packagecom.whirled.game
Classpublic class CoinsAwardedEvent
InheritanceCoinsAwardedEvent Inheritance flash.events.Event

Dispatched to let a game know when the player has been awarded coins. This event is cancellable. If you would like to print your own coin award message and suppress the default one, call preventDefault().



Public Properties
 PropertyDefined by
  amount : int
[read-only] Returns the amount of coins awarded to the player.
CoinsAwardedEvent
  percentile : int
[read-only] Returns the % of scores lower than the player's reported score, or -1 if no score was reported.
CoinsAwardedEvent
Public Methods
 MethodDefined by
  
CoinsAwardedEvent(amount:int, percentile:int)
Creates a new event.
CoinsAwardedEvent
  
clone():Event
CoinsAwardedEvent
  
toString():String
CoinsAwardedEvent
Public Constants
 ConstantDefined by
  COINS_AWARDED : String = "CoinsAwarded"
[static] An event type dispatched at the end of a game (before GAME_ENDED) to inform the game that the player has earned coins.
CoinsAwardedEvent
Property detail
amountproperty
amount:int  [read-only]

Returns the amount of coins awarded to the player.

Implementation
    public function get amount():int
percentileproperty 
percentile:int  [read-only]

Returns the % of scores lower than the player's reported score, or -1 if no score was reported.

Implementation
    public function get percentile():int
Constructor detail
CoinsAwardedEvent()constructor
public function CoinsAwardedEvent(amount:int, percentile:int)

Creates a new event.

Parameters
amount:int
 
percentile:int
Method detail
clone()method
public override function clone():Event

Returns
Event
toString()method 
public override function toString():String

Returns
String
Constant detail
COINS_AWARDEDconstant
public static const COINS_AWARDED:String = "CoinsAwarded"

An event type dispatched at the end of a game (before GAME_ENDED) to inform the game that the player has earned coins.