| Package | com.fileitup.fisixengine.graphics |
| Class | public class WheelAttacher |
| Inheritance | WheelAttacher DisplayAttacher2 DisplayAttacher |
| Property | Defined by | ||
|---|---|---|---|
![]() | anchor2 : Vector | DisplayAttacher2 | |
| wheel : WheelParticle | WheelAttacher | ||
| Method | Defined by | ||
|---|---|---|---|
|
WheelAttacher(disp:DisplayObject, obj:WheelParticle, angOffset:Number = 0, angMult:Number = 1)
Creates a WheelAttacher.
| WheelAttacher | ||
|
dispose():void
Disposes of the DisplayAttacher.
| WheelAttacher | ||
![]() |
unload():void
Removes the DisplayAttacher from the simulation and disposes of it.
| DisplayAttacher | |
|
update():void
Updates the attached DisplayObject.
| WheelAttacher | ||
| wheel | property |
protected var wheel:WheelParticle
| WheelAttacher | () | constructor |
public function WheelAttacher(disp:DisplayObject, obj:WheelParticle, angOffset:Number = 0, angMult:Number = 1)Creates a WheelAttacher.
Parametersdisp:DisplayObject — A flash DisplayObject (ie. a MovieClip, Sprite, Shape).
|
|
obj:WheelParticle — The WheelParticle object to attach the DisplayObject 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.
|
| 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.