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().
amount:int
[read-only]
Returns the amount of coins awarded to the player.
Implementation
public function get amount():int
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
public function CoinsAwardedEvent(amount:int, percentile:int)
Creates a new event.
Parameters
| amount:int |
|
| percentile:int |
public override function clone():Event
Returns
public override function toString():String
Returns
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.
Copyright © 2007-2009 Three Rings Design, Inc.