Packagecom.threerings.display
Classpublic class FrameSprite
InheritanceFrameSprite Inheritance flash.display.Sprite

Convenience superclass to use for sprites that need to update every frame. (One must be very careful to remove all ENTER_FRAME listeners when not needed, as they will prevent an object from being garbage collected!)



Protected Properties
 PropertyDefined by
  _renderOnAdd : Boolean
Should we call handleFrame() when we get ADDED_TO_STAGE?
FrameSprite
Public Methods
 MethodDefined by
  
FrameSprite(renderFrameUponAdding:Boolean = true)
FrameSprite
Protected Methods
 MethodDefined by
  
handleAdded(... ignored):void
Called when we're added to the stage.
FrameSprite
  
handleFrame(... ignored):void
Called to update our visual appearance prior to each frame.
FrameSprite
  
handleRemoved(... ignored):void
Called when we're added to the stage.
FrameSprite
Property detail
_renderOnAddproperty
protected var _renderOnAdd:Boolean

Should we call handleFrame() when we get ADDED_TO_STAGE?

Constructor detail
FrameSprite()constructor
public function FrameSprite(renderFrameUponAdding:Boolean = true)

Parameters
renderFrameUponAdding:Boolean (default = true) — if true, the handleFrame() method is called whenever an ADDED_TO_STAGE event is received.
Method detail
handleAdded()method
protected function handleAdded(... ignored):void

Called when we're added to the stage.

Parameters
... ignored
handleFrame()method 
protected function handleFrame(... ignored):void

Called to update our visual appearance prior to each frame.

Parameters
... ignored
handleRemoved()method 
protected function handleRemoved(... ignored):void

Called when we're added to the stage.

Parameters
... ignored