| Package | com.fileitup.fisixengine.utils |
| Class | public class MouseAttacher |
| Implements | EngineObject |
| Property | Defined by | ||
|---|---|---|---|
| active : Boolean = true | MouseAttacher | ||
| dynamicObject : Particle | MouseAttacher | ||
| ease : Number | MouseAttacher | ||
| mouseObject : DisplayObject | MouseAttacher | ||
| parent : FisixEngine | MouseAttacher | ||
| Method | Defined by | ||
|---|---|---|---|
|
MouseAttacher(obj:Particle, mouse:DisplayObject, easing:Number)
Creates a MouseAttacher object
| MouseAttacher | ||
|
dispose():void
Disposes of the MouseAttacher.
| MouseAttacher | ||
|
unload():void
Removes the MouseAttacher from the simulation and disposes of it.
| MouseAttacher | ||
|
update():void
Updates the attached Particle.
| MouseAttacher | ||
| active | property |
public var active:Boolean = true
| dynamicObject | property |
public var dynamicObject:Particle
| ease | property |
public var ease:Number
| mouseObject | property |
public var mouseObject:DisplayObject
| parent | property |
public var parent:FisixEngine
| MouseAttacher | () | constructor |
public function MouseAttacher(obj:Particle, mouse:DisplayObject, easing:Number)Creates a MouseAttacher object
Parametersobj:Particle — The object you'd like to attach to the mouse (ie. Particle, Polygon)
|
|
mouse:DisplayObject — A Flash Particle to get the mouse coordinates from (ie. root)
|
|
easing:Number — A value 1 or greater which specifies the amount of easing to apply to the force added to the object.
1 means no easing at all, while higher values represent higher easing.
|
| dispose | () | method |
public function dispose():voidDisposes of the MouseAttacher. Use this method only after you have removed the Attacher from the simulation. Or simply use unload()
See also
| unload | () | method |
public function unload():voidRemoves the MouseAttacher from the simulation and disposes of it. Use this function when you no longer need the Attacher.
| update | () | method |
public function update():voidUpdates the attached Particle. This function is automatically called by the engine.