Dispatched when an occupant enters or leaves.
If a watcher becomes a player, you may get an OCCUPANT_LEFT event where player == false,
followed immediately by an OCCUPANT_ENTERED event where player == true.
occupantId:int
[read-only]
The occupantId of the occupant that entered or left.
Implementation
public function get occupantId():int
player:Boolean
[read-only]
Is/was the occupant a player? If false, they are/were a watcher.
Implementation
public function get player():Boolean
public function OccupantChangedEvent(type:String, occupantId:int, player:Boolean)
Parameters
| type:String |
|
| occupantId:int |
|
| player:Boolean |
public override function clone():Event
Returns
public override function toString():String
Returns
public static const OCCUPANT_ENTERED:String = "OccupantEntered"
public static const OCCUPANT_LEFT:String = "OccupantLeft"
Copyright © 2007-2009 Three Rings Design, Inc.