Package | com.fileitup.fisixengine.graphics |
Class | public class SurfaceAttacher |
Inheritance | SurfaceAttacher ![]() ![]() |
See also
Method | Defined by | ||
---|---|---|---|
SurfaceAttacher(disp:DisplayObject, s:Surface, angOffset:Number = 0, angMult:Number = 1, reverse:Boolean = false)
Creates a ConstraintAttacher.
| SurfaceAttacher | ||
![]() |
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 |
SurfaceAttacher | () | constructor |
public function SurfaceAttacher(disp:DisplayObject, s:Surface, angOffset:Number = 0, angMult:Number = 1, reverse:Boolean = false)
Creates a ConstraintAttacher.
Parametersdisp:DisplayObject — A flash DisplayObject (ie. a MovieClip, Sprite, Shape).
|
|
s:Surface — A Surface object to attach to.
|
|
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 Surface as the anchor instead of ParticleA.
|