Packagecom.whirled.avrg
Classpublic class MobSubControlClient
InheritanceMobSubControlClient Inheritance MobSubControlBase Inheritance AbstractSubControl Inheritance AbstractControl Inheritance flash.events.EventDispatcher

Provides clients with a means of accessing and controlling a previously spawned MOB.

See also

http://wiki.whirled.com/Mobs
RoomSubControlServer.spawnMob()
RoomSubControlBase.mobControlAvailable
RoomSubControlClient.getMobSubControl()


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
  
getMobSprite():DisplayObject
Accesses the sprite object for this MOB.
MobSubControlClient
 Inherited
isConnected():Boolean
Are we connected and running inside the whirled environment, or has someone just loaded up our SWF by itself?
AbstractSubControl
  
Removes the previously assigned decoration.
MobSubControlClient
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Unregisters an event listener.
AbstractControl
  
setDecoration(decoration:DisplayObject):void
Assigns an object to decorate a mob.
MobSubControlClient
  
setHotSpot(x:Number, y:Number, height:Number):void
Set the layout "hotspot" for your item, specified as pixels relative to (0, 0) the top-left coordinate.
MobSubControlClient
Events
 EventSummaryDefined by
 Inherited Dispatched when the location or orientation of a MOB changes.MobSubControlBase
 Inherited Event.UNLOAD Dispatched when the SWF using this control has been unloaded.AbstractControl
Method detail
getMobSprite()method
public function getMobSprite():DisplayObject

Accesses the sprite object for this MOB. If non-null, this will return the value created by the mob sprite exporter assigned in the LocalSubControl.

Returns
DisplayObject

See also

removeDecoration()method 
public function removeDecoration():void

Removes the previously assigned decoration.

setDecoration()method 
public function setDecoration(decoration:DisplayObject):void

Assigns an object to decorate a mob.

Parameters
decoration:DisplayObject
setHotSpot()method 
public function setHotSpot(x:Number, y:Number, height:Number):void

Set the layout "hotspot" for your item, specified as pixels relative to (0, 0) the top-left coordinate. If unset, the default hotspot will be based off of the SWF dimensions, with x = width / 2, y = height.

Parameters
x:Number
 
y:Number
 
height:Number