Packagecom.fileitup.fisixengine.graphics
Classpublic class DisplayAttacher
SubclassesDisplayAttacher2, DisplayAttacher3, ParticleAttacher

The most basic DisplayAttacher, used to attach a Flash DisplayObject to a single vector. Note that every Particle has a Vector object (pos) which can be used as a parameter when creating the DisplayAttacher.

See also

com.fileitup.fisixengine.core.Particle.pos


Public Properties
 PropertyDefined by
  anchor : Vector
DisplayAttacher
  disp : DisplayObject
DisplayAttacher
  parent : FisixObject
DisplayAttacher
  xOffset : Number
DisplayAttacher
Public Methods
 MethodDefined by
  
DisplayAttacher(d:DisplayObject, anch:Vector, xOff:Number = 0, yOff:Number = 0)
Creates a DisplayAttacher.
DisplayAttacher
  
dispose():void
Disposes of the DisplayAttacher.
DisplayAttacher
  
unload():void
Removes the DisplayAttacher from the simulation and disposes of it.
DisplayAttacher
  
update():void
Updates the attached DisplayObject.
DisplayAttacher
Property detail
anchorproperty
public var anchor:Vector
dispproperty 
public var disp:DisplayObject
parentproperty 
public var parent:FisixObject
xOffsetproperty 
public var xOffset:Number
Constructor detail
DisplayAttacher()constructor
public function DisplayAttacher(d:DisplayObject, anch:Vector, xOff:Number = 0, yOff:Number = 0)

Creates a DisplayAttacher.

Parameters
d:DisplayObject — A flash DisplayObject (ie. a MovieClip, Sprite, Shape).
 
anch:Vector — The Vector object to attach the DisplayObject to.
 
xOff:Number (default = 0) — The amount of pixels to offset the DisplayObject on the x axis
 
yOff:Number (default = 0) — The amount of pixels to offset the DisplayObject on the y axis
Method detail
dispose()method
public function dispose():void

Disposes of the DisplayAttacher. Use this method only after you have removed the DisplayAttacher from the simulation. Or simply use unload()

See also

unload()method 
public function unload():void

Removes the DisplayAttacher from the simulation and disposes of it. Use this function when you no longer need the DisplayAttacher.

update()method 
public function update():void

Updates the attached DisplayObject. This function is automatically called by the engine.