Packagecom.whirled.avrg
Classpublic class AgentSubControl
InheritanceAgentSubControl Inheritance AbstractSubControl Inheritance AbstractControl Inheritance flash.events.EventDispatcher
ImplementsMessageSubControl

Provides AVR game clients a way to communicate to their server agent.



Public Methods
 MethodDefined by
 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
 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
  
sendMessage(name:String, value:Object = null):void
Sends a message to the agent.
AgentSubControl
Events
 EventSummaryDefined by
 Inherited Event.UNLOAD Dispatched when the SWF using this control has been unloaded.AbstractControl
Method detail
sendMessage()method
public function sendMessage(name:String, value:Object = null):void

Sends a message to the agent. The agent receives messages by adding a MESSAGE_RECEIVED event listener to GameSubControlServer.

Parameters
name:String
 
value:Object (default = null)

See also