| Package | com.fileitup.fisixengine.graphics |
| Class | public class DisplayAttacher |
| Subclasses | DisplayAttacher2, DisplayAttacher3, ParticleAttacher |
See also
| Property | Defined by | ||
|---|---|---|---|
| anchor : Vector | DisplayAttacher | ||
| disp : DisplayObject | DisplayAttacher | ||
| parent : FisixObject | DisplayAttacher | ||
| xOffset : Number | DisplayAttacher | ||
| Method | Defined by | ||
|---|---|---|---|
|
DisplayAttacher(d:DisplayObject, anch:Vector, xOff:Number = 0, yOff:Number = 0)
Creates a DisplayAttacher.
| DisplayAttacher | ||
|
dispose():void
Disposes of the DisplayAttacher.
| DisplayAttacher | ||
|
unload():void
Removes the DisplayAttacher from the simulation and disposes of it.
| DisplayAttacher | ||
|
update():void
Updates the attached DisplayObject.
| DisplayAttacher | ||
| anchor | property |
public var anchor:Vector
| disp | property |
public var disp:DisplayObject
| parent | property |
public var parent:FisixObject
| xOffset | property |
public var xOffset:Number
| DisplayAttacher | () | constructor |
public function DisplayAttacher(d:DisplayObject, anch:Vector, xOff:Number = 0, yOff:Number = 0)Creates a DisplayAttacher.
Parametersd:DisplayObject — A flash DisplayObject (ie. a MovieClip, Sprite, Shape).
|
|
anch:Vector — The Vector object to attach the DisplayObject to.
|
|
xOff:Number (default = 0) — The amount of pixels to offset the DisplayObject on the x axis
|
|
yOff:Number (default = 0) — The amount of pixels to offset the DisplayObject on the y axis
|
| dispose | () | method |
public function dispose():voidDisposes of the DisplayAttacher. Use this method only after you have removed the DisplayAttacher from the simulation. Or simply use unload()
See also
| unload | () | method |
public function unload():voidRemoves the DisplayAttacher from the simulation and disposes of it. Use this function when you no longer need the DisplayAttacher.
| update | () | method |
public function update():voidUpdates the attached DisplayObject. This function is automatically called by the engine.