Packagecom.fileitup.fisixengine.graphics
Classpublic class WheelAttacher
InheritanceWheelAttacher Inheritance DisplayAttacher2 Inheritance DisplayAttacher

A DisplayAttacher customized especially for Wheels. This is the most efficient way to constraint a DisplayObject to a wheel.



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
  wheel : WheelParticle
WheelAttacher
Public Methods
 MethodDefined by
  
WheelAttacher(disp:DisplayObject, obj:WheelParticle, angOffset:Number = 0, angMult:Number = 1)
Creates a WheelAttacher.
WheelAttacher
  
dispose():void
Disposes of the DisplayAttacher.
WheelAttacher
 Inherited
unload():void
Removes the DisplayAttacher from the simulation and disposes of it.
DisplayAttacher
  
update():void
Updates the attached DisplayObject.
WheelAttacher
Property detail
wheelproperty
protected var wheel:WheelParticle
Constructor detail
WheelAttacher()constructor
public function WheelAttacher(disp:DisplayObject, obj:WheelParticle, angOffset:Number = 0, angMult:Number = 1)

Creates a WheelAttacher.

Parameters
disp: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.
Method detail
dispose()method
public override function dispose():void

Disposes 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():void

Updates the attached DisplayObject. This function is automatically called by the engine.