Packagecom.whirled.game
Classpublic class GameContentEvent
InheritanceGameContentEvent Inheritance flash.events.Event

Dispatched when content-related events happen.



Public Properties
 PropertyDefined by
  contentIdent : String
[read-only] Returns the identifier of the content pack associated with this event.
GameContentEvent
  contentType : String
[read-only] Returns the type of content associated with this event.
GameContentEvent
  playerId : int
[read-only] Returns the identifier of the player to whom this event pertains or 0.
GameContentEvent
Protected Properties
 PropertyDefined by
  _contentIdent : String
GameContentEvent
  _contentType : String
GameContentEvent
  _playerId : int
GameContentEvent
Public Methods
 MethodDefined by
  
GameContentEvent(type:String, contentType:String, contentIdent:String, playerId:int = 0)
GameContentEvent
  
clone():Event
GameContentEvent
  
toString():String
GameContentEvent
Public Constants
 ConstantDefined by
  ITEM_PACK : String = "item_pack"
[static] Used to report item pack related events.
GameContentEvent
  LEVEL_PACK : String = "level_pack"
[static] Used to report level pack related events.
GameContentEvent
  PLAYER_CONTENT_ADDED : String = "PlayerContentAdded"
[static] Indicates that the a player has purchased new game content.
GameContentEvent
  PLAYER_CONTENT_CONSUMED : String = "PlayerContentConsumed"
[static] Indicates that the a player has consumed an item pack.
GameContentEvent
Property detail
_contentIdentproperty
protected var _contentIdent:String
contentIdentproperty 
contentIdent:String  [read-only]

Returns the identifier of the content pack associated with this event.

Implementation
    public function get contentIdent():String
_contentTypeproperty 
protected var _contentType:String
contentTypeproperty 
contentType:String  [read-only]

Returns the type of content associated with this event. Either ITEM_PACK or LEVEL_PACK.

Implementation
    public function get contentType():String
_playerIdproperty 
protected var _playerId:int
playerIdproperty 
playerId:int  [read-only]

Returns the identifier of the player to whom this event pertains or 0.

Implementation
    public function get playerId():int
Constructor detail
GameContentEvent()constructor
public function GameContentEvent(type:String, contentType:String, contentIdent:String, playerId:int = 0)Parameters
type:String
 
contentType:String
 
contentIdent:String
 
playerId:int (default = 0)
Method detail
clone()method
public override function clone():Event

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

Returns
String
Constant detail
ITEM_PACKconstant
public static const ITEM_PACK:String = "item_pack"

Used to report item pack related events.

LEVEL_PACKconstant 
public static const LEVEL_PACK:String = "level_pack"

Used to report level pack related events.

PLAYER_CONTENT_ADDEDconstant 
public static const PLAYER_CONTENT_ADDED:String = "PlayerContentAdded"

Indicates that the a player has purchased new game content.

PLAYER_CONTENT_CONSUMEDconstant 
public static const PLAYER_CONTENT_CONSUMED:String = "PlayerContentConsumed"

Indicates that the a player has consumed an item pack. contentType() for this event will always be ITEM_PACK.