Packagecom.whirled.contrib.platformer.display
Classpublic class DynamicSprite
InheritanceDynamicSprite Inheritance flash.display.Sprite
SubclassesActorSprite, GateSprite, HoverSprite, ShotSprite, SpawnerSprite



Public Properties
 PropertyDefined by
  displayHeight : Number
[read-only]
DynamicSprite
  displayWidth : Number
[read-only]
DynamicSprite
Protected Properties
 PropertyDefined by
  _disp : DisplayObject
DynamicSprite
  _dynamic : Dynamic
DynamicSprite
  _hitFilter : ColorMatrixFilter
DynamicSprite
  _hitFilterIndex : int
DynamicSprite
  _hitLeft : Number = 0
DynamicSprite
  _listeners : Object
DynamicSprite
  _particleCallback : Function
DynamicSprite
  _state : int = -1
DynamicSprite
  _static : Boolean
DynamicSprite
Public Methods
 MethodDefined by
  
DynamicSprite(dy:Dynamic, disp:DisplayObject = null)
DynamicSprite
  
forceBack():Boolean
DynamicSprite
  
DynamicSprite
  
setParticleCallback(callback:Function):void
DynamicSprite
  
setStatic(s:Boolean):void
DynamicSprite
  
showState():int
DynamicSprite
  
shutdown():void
DynamicSprite
  
update(delta:Number):void
DynamicSprite
Protected Methods
 MethodDefined by
  
bindSoundEffectPlayback(soundEffect:SoundEffect):Function
DynamicSprite
  
changeState(newState:int):void
DynamicSprite
  
clearDisp():void
DynamicSprite
  
findNode(node:String, disp:DisplayObject):DisplayObject
DynamicSprite
  
generateAttachedEffect(name:String, node:DisplayObjectContainer):void
DynamicSprite
  
generateEffect(effect:Effect, node:DisplayObject, filter:ColorMatrixFilter = null, scaleY:Number = 1):void
DynamicSprite
  
getStateFrame(state:int):Object
DynamicSprite
  
handleAdded(event:Event):void
DynamicSprite
  
handleRemoved(event:Event):void
DynamicSprite
  
onAdded():void
DynamicSprite
  
onRemoved():void
DynamicSprite
  
DynamicSprite
  
playState():void
DynamicSprite
  
recolorNodes(node:String, disp:DisplayObject, filter:ColorMatrixFilter):void
DynamicSprite
  
recolorNodesToColor(node:String, disp:DisplayObject, color:int):ColorMatrixFilter
DynamicSprite
  
registerDispEventListener(event:String, func:Function):void
DynamicSprite
  
setSoundEffectPlaying(effect:SoundEffect, playing:Boolean):void
DynamicSprite
  
showHit(filter:ColorMatrixFilter = null, length:Number):Boolean
DynamicSprite
  
DynamicSprite
Public Constants
 ConstantDefined by
  ALWAYS : int = 1
[static]
DynamicSprite
  NEVER : int = 2
[static]
DynamicSprite
  NORMAL : int = 0
[static]
DynamicSprite
  UNTIL_REMOVED : int = 3
[static]
DynamicSprite
Protected Constants
 ConstantDefined by
  HIT_LENGTH : Number = 0.1
[static]
DynamicSprite
  SOUND_NORMAL_DISTANCE : Number
[static]
DynamicSprite
Property detail
_dispproperty
protected var _disp:DisplayObject
displayHeightproperty 
displayHeight:Number  [read-only]Implementation
    public function get displayHeight():Number
displayWidthproperty 
displayWidth:Number  [read-only]Implementation
    public function get displayWidth():Number
_dynamicproperty 
protected var _dynamic:Dynamic
_hitFilterproperty 
protected var _hitFilter:ColorMatrixFilter
_hitFilterIndexproperty 
protected var _hitFilterIndex:int
_hitLeftproperty 
protected var _hitLeft:Number = 0
_listenersproperty 
protected var _listeners:Object
_particleCallbackproperty 
protected var _particleCallback:Function
_stateproperty 
protected var _state:int = -1
_staticproperty 
protected var _static:Boolean
Constructor detail
DynamicSprite()constructor
public function DynamicSprite(dy:Dynamic, disp:DisplayObject = null)Parameters
dy:Dynamic
 
disp:DisplayObject (default = null)
Method detail
bindSoundEffectPlayback()method
protected function bindSoundEffectPlayback(soundEffect:SoundEffect):FunctionParameters
soundEffect:SoundEffect

Returns
Function
changeState()method 
protected function changeState(newState:int):voidParameters
newState:int
clearDisp()method 
protected function clearDisp():void
findNode()method 
protected function findNode(node:String, disp:DisplayObject):DisplayObjectParameters
node:String
 
disp:DisplayObject

Returns
DisplayObject
forceBack()method 
public function forceBack():Boolean

Returns
Boolean
generateAttachedEffect()method 
protected function generateAttachedEffect(name:String, node:DisplayObjectContainer):voidParameters
name:String
 
node:DisplayObjectContainer
generateEffect()method 
protected function generateEffect(effect:Effect, node:DisplayObject, filter:ColorMatrixFilter = null, scaleY:Number = 1):voidParameters
effect:Effect
 
node:DisplayObject
 
filter:ColorMatrixFilter (default = null)
 
scaleY:Number (default = 1)
getDynamic()method 
public function getDynamic():Dynamic

Returns
Dynamic
getStateFrame()method 
protected function getStateFrame(state:int):ObjectParameters
state:int

Returns
Object
handleAdded()method 
protected function handleAdded(event:Event):voidParameters
event:Event
handleRemoved()method 
protected function handleRemoved(event:Event):voidParameters
event:Event
onAdded()method 
protected function onAdded():void
onRemoved()method 
protected function onRemoved():void
playSoundEffect()method 
protected function playSoundEffect(effect:SoundEffect):voidParameters
effect:SoundEffect
playState()method 
protected function playState():void
recolorNodes()method 
protected function recolorNodes(node:String, disp:DisplayObject, filter:ColorMatrixFilter):voidParameters
node:String
 
disp:DisplayObject
 
filter:ColorMatrixFilter
recolorNodesToColor()method 
protected function recolorNodesToColor(node:String, disp:DisplayObject, color:int):ColorMatrixFilterParameters
node:String
 
disp:DisplayObject
 
color:int

Returns
ColorMatrixFilter
registerDispEventListener()method 
protected function registerDispEventListener(event:String, func:Function):voidParameters
event:String
 
func:Function
setParticleCallback()method 
public function setParticleCallback(callback:Function):voidParameters
callback:Function
setSoundEffectPlaying()method 
protected function setSoundEffectPlaying(effect:SoundEffect, playing:Boolean):voidParameters
effect:SoundEffect
 
playing:Boolean
setStatic()method 
public function setStatic(s:Boolean):voidParameters
s:Boolean
showHit()method 
protected function showHit(filter:ColorMatrixFilter = null, length:Number):BooleanParameters
filter:ColorMatrixFilter (default = null)
 
length:Number

Returns
Boolean
showState()method 
public function showState():int

Returns
int
shutdown()method 
public function shutdown():void
stopSoundEffect()method 
protected function stopSoundEffect(effect:SoundEffect):voidParameters
effect:SoundEffect
update()method 
public function update(delta:Number):voidParameters
delta:Number
Constant detail
ALWAYSconstant
public static const ALWAYS:int = 1
HIT_LENGTHconstant 
protected static const HIT_LENGTH:Number = 0.1
NEVERconstant 
public static const NEVER:int = 2
NORMALconstant 
public static const NORMAL:int = 0
SOUND_NORMAL_DISTANCEconstant 
protected static const SOUND_NORMAL_DISTANCE:Number
UNTIL_REMOVEDconstant 
public static const UNTIL_REMOVED:int = 3