Packagecom.fileitup.fisixengine.graphics
Classpublic class ConstraintAttacher
InheritanceConstraintAttacher Inheritance DisplayAttacher2 Inheritance DisplayAttacher

A DisplayAttacher customized especially for Spring and Stick Constraints.

See also

DisplayAttacher2


Public Properties
 PropertyDefined by
 Inheritedanchor : Vector
DisplayAttacher
 Inheriteddisp : DisplayObject
DisplayAttacher
 Inheritedoffset : Number
DisplayAttacher2
 Inheritedparent : FisixObject
DisplayAttacher
 InheritedxOffset : Number
DisplayAttacher
Protected Properties
 PropertyDefined by
 Inheritedanchor2 : Vector
DisplayAttacher2
Public Methods
 MethodDefined by
  
ConstraintAttacher(disp:DisplayObject, con:SpringConstraint, angOffset:Number = 0, angMult:Number = 1, reverse:Boolean = false)
Creates a ConstraintAttacher.
ConstraintAttacher
 Inherited
dispose():void
Disposes of the DisplayAttacher.
DisplayAttacher2
 Inherited
unload():void
Removes the DisplayAttacher from the simulation and disposes of it.
DisplayAttacher
 Inherited
update():void
Updates the attached DisplayObject.
DisplayAttacher2
Constructor detail
ConstraintAttacher()constructor
public function ConstraintAttacher(disp:DisplayObject, con:SpringConstraint, angOffset:Number = 0, angMult:Number = 1, reverse:Boolean = false)

Creates a ConstraintAttacher.

Parameters
disp:DisplayObject — A flash DisplayObject (ie. a MovieClip, Sprite, Shape).
 
con:SpringConstraint — A Constraint object to attach to. This may also be a StickConstraint.
 
angOffset:Number (default = 0) — The amount of degrees to offset the angle of the DisplayObject.
 
angMult:Number (default = 1) — A value to multiply the angle by before adding the offset.
 
reverse:Boolean (default = false) — If true, sets particleB of the Constraint as the anchor instead of ParticleA.