Packagecom.whirled.avrg
Classpublic class AVRGameControl
InheritanceAVRGameControl Inheritance AbstractControl Inheritance flash.events.EventDispatcher

This file should be included by AVR game clients so that they can communicate with their server agent and the whirled. AVRGame means: Alternate Virtual Reality Game, and refers to games played within the whirled environment with your avatar.

AVR games can be significantly more complicated than lobbied games. Please consult the whirled wiki section on AVRGs as well as the AVRG discussion forum if you're having any problems.

See also

http://wiki.whirled.com/AVR_Games
http://www.whirled.com/#whirleds-d_135


Public Properties
 PropertyDefined by
  agent : AgentSubControl
[read-only] Accesses the client's agent sub control.
AVRGameControl
  game : GameSubControlClient
[read-only] Accesses the client's game sub control.
AVRGameControl
  local : LocalSubControl
[read-only] Accesses the client's local sub control.
AVRGameControl
  player : PlayerSubControlClient
[read-only] Accesses the client's local player sub control.
AVRGameControl
  room : RoomSubControlClient
[read-only] Accesses the client's room sub control for the player's current room.
AVRGameControl
Public Methods
 MethodDefined by
  
AVRGameControl(disp:DisplayObject)
Creates a new game control for an AVR game client.
AVRGameControl
 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.
AbstractControl
 Inherited
isConnected():Boolean
Are we connected and running inside the whirled environment, or has someone just loaded up our SWF by itself?
AbstractControl
 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
Property detail
agentproperty
agent:AgentSubControl  [read-only]

Accesses the client's agent sub control.

Implementation
    public function get agent():AgentSubControl
gameproperty 
game:GameSubControlClient  [read-only]

Accesses the client's game sub control.

Implementation
    public function get game():GameSubControlClient
localproperty 
local:LocalSubControl  [read-only]

Accesses the client's local sub control.

Implementation
    public function get local():LocalSubControl
playerproperty 
player:PlayerSubControlClient  [read-only]

Accesses the client's local player sub control.

Implementation
    public function get player():PlayerSubControlClient
roomproperty 
room:RoomSubControlClient  [read-only]

Accesses the client's room sub control for the player's current room.

Implementation
    public function get room():RoomSubControlClient
Constructor detail
AVRGameControl()constructor
public function AVRGameControl(disp:DisplayObject)

Creates a new game control for an AVR game client.

Parameters
disp:DisplayObject