Packagecom.whirled.contrib.platformer.display
Classpublic class ActorSprite
InheritanceActorSprite Inheritance DynamicSprite Inheritance flash.display.Sprite



Public Properties
 PropertyDefined by
 InheriteddisplayHeight : Number
DynamicSprite
 InheriteddisplayWidth : Number
DynamicSprite
Protected Properties
 PropertyDefined by
  _actor : Actor
ActorSprite
 Inherited_disp : DisplayObject
DynamicSprite
 Inherited_dynamic : Dynamic
DynamicSprite
 Inherited_hitFilter : ColorMatrixFilter
DynamicSprite
 Inherited_hitFilterIndex : int
DynamicSprite
 Inherited_hitLeft : Number = 0
DynamicSprite
 Inherited_listeners : Object
DynamicSprite
  _oldDx : Number = 0
ActorSprite
  _oldDy : Number = 0
ActorSprite
 Inherited_particleCallback : Function
DynamicSprite
 Inherited_state : int = -1
DynamicSprite
 Inherited_static : Boolean
DynamicSprite
Public Methods
 MethodDefined by
  
ActorSprite(actor:Actor, disp:DisplayObject = null)
ActorSprite
 Inherited
forceBack():Boolean
DynamicSprite
  
ActorSprite
 Inherited
DynamicSprite
 Inherited
setParticleCallback(callback:Function):void
DynamicSprite
  
setStatic(s:Boolean):void
ActorSprite
  
showState():int
ActorSprite
  
shutdown():void
ActorSprite
  
update(delta:Number):void
ActorSprite
Protected Methods
 MethodDefined by
  
actionComplete(event:Event):void
ActorSprite
 Inherited
bindSoundEffectPlayback(soundEffect:SoundEffect):Function
DynamicSprite
  
changeState(newState:int):void
ActorSprite
 Inherited
clearDisp():void
DynamicSprite
 Inherited
findNode(node:String, disp:DisplayObject):DisplayObject
DynamicSprite
 Inherited
generateAttachedEffect(name:String, node:DisplayObjectContainer):void
DynamicSprite
 Inherited
generateEffect(effect:Effect, node:DisplayObject, filter:ColorMatrixFilter = null, scaleY:Number = 1):void
DynamicSprite
  
getStateFrame(state:int):Object
ActorSprite
  
ActorSprite
 Inherited
handleAdded(event:Event):void
DynamicSprite
 Inherited
handleRemoved(event:Event):void
DynamicSprite
 Inherited
onAdded():void
DynamicSprite
 Inherited
onRemoved():void
DynamicSprite
 Inherited
DynamicSprite
 Inherited
playState():void
DynamicSprite
 Inherited
recolorNodes(node:String, disp:DisplayObject, filter:ColorMatrixFilter):void
DynamicSprite
 Inherited
recolorNodesToColor(node:String, disp:DisplayObject, color:int):ColorMatrixFilter
DynamicSprite
 Inherited
registerDispEventListener(event:String, func:Function):void
DynamicSprite
 Inherited
setSoundEffectPlaying(effect:SoundEffect, playing:Boolean):void
DynamicSprite
 Inherited
showHit(filter:ColorMatrixFilter = null, length:Number):Boolean
DynamicSprite
 Inherited
DynamicSprite
Public Constants
 ConstantDefined by
 InheritedALWAYS : int = 1
[static]
DynamicSprite
 InheritedNEVER : int = 2
[static]
DynamicSprite
 InheritedNORMAL : int = 0
[static]
DynamicSprite
 InheritedUNTIL_REMOVED : int = 3
[static]
DynamicSprite
Protected Constants
 ConstantDefined by
  AS_COUNT : int = 1
[static]
ActorSprite
  AS_STATES : Array
[static]
ActorSprite
 InheritedHIT_LENGTH : Number = 0.1
[static]
DynamicSprite
 InheritedSOUND_NORMAL_DISTANCE : Number
[static]
DynamicSprite
  TURN : int = 0
[static]
ActorSprite
Property detail
_actorproperty
protected var _actor:Actor
_oldDxproperty 
protected var _oldDx:Number = 0
_oldDyproperty 
protected var _oldDy:Number = 0
Constructor detail
ActorSprite()constructor
public function ActorSprite(actor:Actor, disp:DisplayObject = null)Parameters
actor:Actor
 
disp:DisplayObject (default = null)
Method detail
actionComplete()method
protected function actionComplete(event:Event):voidParameters
event:Event
changeState()method 
protected override function changeState(newState:int):voidParameters
newState:int
getActor()method 
public function getActor():Actor

Returns
Actor
getStateFrame()method 
protected override function getStateFrame(state:int):ObjectParameters
state:int

Returns
Object
handleActionComplete()method 
protected function handleActionComplete():void
setStatic()method 
public override function setStatic(s:Boolean):voidParameters
s:Boolean
showState()method 
public override function showState():int

Returns
int
shutdown()method 
public override function shutdown():void
update()method 
public override function update(delta:Number):voidParameters
delta:Number
Constant detail
AS_COUNTconstant
protected static const AS_COUNT:int = 1
AS_STATESconstant 
protected static const AS_STATES:Array
TURNconstant 
protected static const TURN:int = 0