Packagecom.whirled
Classpublic class TargetedSubControl
InheritanceTargetedSubControl Inheritance AbstractSubControl Inheritance AbstractControl Inheritance flash.events.EventDispatcher
SubclassesOfflinePlayerPropertyControl, PartySubControl, PlayerSubControlBase, RoomSubControlBase

Superclass for controls that are instantiated in association with a specific target, e.g. roomId or playerId. It centralizes the targetId member and sends it automatically as the first argument to all backend functions.



Public Methods
 MethodDefined by
  
TargetedSubControl(parent:AbstractControl, targetId:int)
TargetedSubControl
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener.
AbstractControl
 Inherited
doBatch(fn:Function, ... args):void
Execute the specified function as a batch of commands that will be sent to the server together.
AbstractSubControl
  
Get the targetId on which this control operates.
TargetedSubControl
 Inherited
isConnected():Boolean
Are we connected and running inside the whirled environment, or has someone just loaded up our SWF by itself?
AbstractSubControl
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Unregisters an event listener.
AbstractControl
Events
 EventSummaryDefined by
 Inherited Event.UNLOAD Dispatched when the SWF using this control has been unloaded.AbstractControl
Constructor detail
TargetedSubControl()constructor
public function TargetedSubControl(parent:AbstractControl, targetId:int)Parameters
parent:AbstractControl
 
targetId:int
Method detail
getTargetId()method
public function getTargetId():int

Get the targetId on which this control operates.

Returns
int