Packagecom.whirled.contrib.avrg.probe
Classpublic class ClientPanel
InheritanceClientPanel Inheritance flash.display.Sprite

The main interface for calling all AVRG functions on the client and on the server. By default, it consists of two tabs at the very top, the client tab and the server tab. Each of these, in turn, contains a series of tabs that are the categories of API functions that may be called, each one corresponding roughly to a sub control type. Within each of these tabs are FunctionPanel instances containing all the functions in that group. The panel logs all events received from the server.

TODO: control which events are logged.



Protected Properties
 PropertyDefined by
  _ctrl : AVRGameControl
ClientPanel
  _defs : Definitions
ClientPanel
  _tabPanel : TabPanel
ClientPanel
Public Methods
 MethodDefined by
  
ClientPanel(ctrl:AVRGameControl)
Creates a new client panel.
ClientPanel
  
handleAdded(evt:Event):void
ClientPanel
  
handleRemoved(evt:Event):void
ClientPanel
  
toString(obj:*):String
[static] Converts a reference to a string, interpreting fields directly if it is a simple object.
ClientPanel
Protected Methods
 MethodDefined by
  
createMob(id:String):DisplayObject
ClientPanel
  
handleGameMessage(evt:MessageReceivedEvent):void
ClientPanel
  
logEvent(event:Event):void
ClientPanel
Property detail
_ctrlproperty
protected var _ctrl:AVRGameControl
_defsproperty 
protected var _defs:Definitions
_tabPanelproperty 
protected var _tabPanel:TabPanel
Constructor detail
ClientPanel()constructor
public function ClientPanel(ctrl:AVRGameControl)

Creates a new client panel. If the given ctrl has no mob sprite exporter, a test one is assigned.

Parameters
ctrl:AVRGameControl
Method detail
createMob()method
protected function createMob(id:String):DisplayObjectParameters
id:String

Returns
DisplayObject
handleAdded()method 
public function handleAdded(evt:Event):voidParameters
evt:Event
handleGameMessage()method 
protected function handleGameMessage(evt:MessageReceivedEvent):voidParameters
evt:MessageReceivedEvent
handleRemoved()method 
public function handleRemoved(evt:Event):voidParameters
evt:Event
logEvent()method 
protected function logEvent(event:Event):voidParameters
event:Event
toString()method 
public static function toString(obj:*):String

Converts a reference to a string, interpreting fields directly if it is a simple object. Also has a special case for AVRGameAvatar because it has no toString method.

Parameters
obj:*

Returns
String