| Package | com.fileitup.fisixengine.graphics |
| Class | public class DisplayAttacher2 |
| Inheritance | DisplayAttacher2 DisplayAttacher |
| Subclasses | ConstraintAttacher, SurfaceAttacher, WheelAttacher |
See also
| Property | Defined by | ||
|---|---|---|---|
![]() | anchor : Vector | DisplayAttacher | |
![]() | disp : DisplayObject | DisplayAttacher | |
| offset : Number | DisplayAttacher2 | ||
![]() | parent : FisixObject | DisplayAttacher | |
![]() | xOffset : Number | DisplayAttacher | |
| Method | Defined by | ||
|---|---|---|---|
|
Creates a DisplayAttacher2.
| DisplayAttacher2 | ||
|
dispose():void
Disposes of the DisplayAttacher.
| DisplayAttacher2 | ||
![]() |
unload():void
Removes the DisplayAttacher from the simulation and disposes of it.
| DisplayAttacher | |
|
update():void
Updates the attached DisplayObject.
| DisplayAttacher2 | ||
| anchor2 | property |
protected var anchor2:Vector
| offset | property |
public var offset:Number
| DisplayAttacher2 | () | constructor |
public function DisplayAttacher2(d:DisplayObject, anc:Vector, target:Vector, off:Number = 0, mult:Number = 1)Creates a DisplayAttacher2.
Parametersd:DisplayObject — A flash DisplayObject (ie. a MovieClip, Sprite, Shape).
|
|
anc:Vector — The Vector object to attach the DisplayObject to.
|
|
target:Vector — The Vector object to use for angle calculations.
|
|
off:Number (default = 0) — The amount of degrees to offset the angle of the DisplayObject.
|
|
mult:Number (default = 1) — A value to multiply the angle by before adding the offset.
|
| dispose | () | method |
public override function dispose():voidDisposes of the DisplayAttacher. Use this method only after you have removed the DisplayAttacher from the simulation. Or simply use unload()
| update | () | method |
public override function update():voidUpdates the attached DisplayObject. This function is automatically called by the engine.