Packagecom.whirled.avrg
Classpublic class GameSubControlClient
InheritanceGameSubControlClient Inheritance GameSubControlBase Inheritance AbstractSubControl Inheritance AbstractControl Inheritance flash.events.EventDispatcher

Provides AVR client game services.

See also

AVRGameControl.game


Public Properties
 PropertyDefined by
  props : PropertyGetSubControl
[read-only] Accesses the read-only properties associated with this game.
GameSubControlClient
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
getItemPacks():Array
Returns the set of all item packs available to this game as an array of objects with the following properties:
     ident - string identifier of item pack
     name - human readable name of item pack
     mediaURL - URL for item pack content
     
GameSubControlBase
 Inherited
getLevelPacks():Array
Returns the set of all level packs available to this game as an array of objects with the following properties:
     ident - string identifier of item pack
     name - human readable name of item pack
     mediaURL - URL for item pack content
     premium - boolean indicating that content is premium or not
     
GameSubControlBase
 Inherited
getOccupantName(playerId:int):String
Get the name of an occupant of the game, or null if not found.
GameSubControlBase
 Inherited
getParty(partyId:int):PartySubControl
Get the party control for the specified party.
GameSubControlBase
 Inherited
getPartyIds():Array
Return the ids of all parties presently in this game.
GameSubControlBase
 Inherited
getPlayerIds():Array
Returns an array of the ids of all players who have joined and not yet quit the game.
GameSubControlBase
 Inherited
isConnected():Boolean
Are we connected and running inside the whirled environment, or has someone just loaded up our SWF by itself?
AbstractSubControl
 Inherited
loadItemPackData(ident:String, onLoaded:Function, onFailure:Function):void
Loads the binary data for the item pack with the specified ident.
GameSubControlBase
 Inherited
loadLevelPackData(ident:String, onLoaded:Function, onFailure:Function):void
Loads the binary data for the level pack with the specified ident.
GameSubControlBase
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Unregisters an event listener.
AbstractControl
Events
 EventSummaryDefined by
 Inherited Dispatched when a message arrives with information that is not part of the shared game state.GameSubControlBase
 Inherited Dispatched when a party arrives in the game.GameSubControlBase
 Inherited Dispatched when a party leaves the game.GameSubControlBase
 Inherited Event.UNLOAD Dispatched when the SWF using this control has been unloaded.AbstractControl
Property detail
propsproperty
props:PropertyGetSubControl  [read-only]

Accesses the read-only properties associated with this game. To change properties use your server agent's GameSubControlServer's props.

Implementation
    public function get props():PropertyGetSubControl

See also