Packageorg.cove.ape
Classpublic class AbstractConstraint
InheritanceAbstractConstraint Inheritance AbstractItem
SubclassesSpringConstraint

The abstract base class for all constraints.

You should not instantiate this class directly -- instead use one of the subclasses.



Public Properties
 PropertyDefined by
 InheritedalwaysRepaint : Boolean
For performance, fixed Particles and SpringConstraints don't have their paint() method called in order to avoid unnecessary redrawing.
AbstractItem
 Inheritedsprite : Sprite
Provides a Sprite to use as a container for drawing or adding children.
AbstractItem
  stiffness : Number
The stiffness of the constraint.
AbstractConstraint
 Inheritedvisible : Boolean
The visibility of the item.
AbstractItem
Public Methods
 MethodDefined by
 Inherited
cleanup():void
This method is called automatically when an item's parent group is removed from the APEngine.
AbstractItem
 Inherited
init():void
This method is automatically called when an item's parent group is added to the engine, an item's Composite is added to a Group, or the item is added to a Composite or Group.
AbstractItem
 Inherited
paint():void
The default painting method for this item.
AbstractItem
 Inherited
setFill(color:uint = 0xffffff, alpha:Number = 1):void
Sets the style of the fill for this Item.
AbstractItem
 Inherited
setLine(thickness:Number = 0, color:uint = 0x000000, alpha:Number = 1):void
Sets the style of the line for this Item.
AbstractItem
 Inherited
setStyle(lineThickness:Number = 0, lineColor:uint = 0x000000, lineAlpha:Number = 1, fillColor:uint = 0xffffff, fillAlpha:Number = 1):void
Sets the line and fill of this Item.
AbstractItem
Property detail
stiffnessproperty
stiffness:Number  [read-write]

The stiffness of the constraint. Higher values result in result in stiffer constraints. Values should be > 0 and <= 1. Depending on the situation, setting constraints to very high values may result in instability.

Implementation
    public function get stiffness():Number
    public function set stiffness(value:Number):void