| Package | com.desuade.motion.bases |
| Class | public class BasePrimitive |
| Inheritance | BasePrimitive Object |
| Subclasses | PrimitivePhysics, PrimitiveTween |
| Language Version : | ActionScript 3 |
| Since : | 29.07.2009 |
| Runtime Versions : | AIR 1.0, Flash Player 9.0.0 |
| Property | Defined By | ||
|---|---|---|---|
| ended : Boolean = false
Has the Primitive ended or not. | BasePrimitive | ||
| endFunc : Function
The function to run on end. | BasePrimitive | ||
| id : int
This is the unique internal id of the item. | BasePrimitive | ||
| isclean : Boolean = true
This is used by the pool to determine if/how the Primitive has been used before in memory. | BasePrimitive | ||
| property : String
The property on the target. | BasePrimitive | ||
| target : Object
The target object. | BasePrimitive | ||
| updateFunc : Function
The function to run on update. | BasePrimitive | ||
| Method | Defined By | ||
|---|---|---|---|
Creates a new BasePrimitive. | BasePrimitive | ||
end(broadcast:Boolean = true):void
This ends the Primitive immediately. | BasePrimitive | ||
init(... args):void
Inits a new BasePrimitive. | BasePrimitive | ||
render(time:int):void
This renders the primitive. | BasePrimitive | ||
| ended | property |
public var ended:Boolean = falseHas the Primitive ended or not.
| endFunc | property |
public var endFunc:FunctionThe function to run on end.
| id | property |
public var id:intThis is the unique internal id of the item.
| isclean | property |
public var isclean:Boolean = trueThis is used by the pool to determine if/how the Primitive has been used before in memory.
| property | property |
public var property:StringThe property on the target.
| target | property |
public var target:ObjectThe target object.
| updateFunc | property |
public var updateFunc:FunctionThe function to run on update.
| BasePrimitive | () | Constructor |
public function BasePrimitive()Creates a new BasePrimitive. This is a base class and should be extended, not used directly.
| end | () | method |
public function end(broadcast:Boolean = true):voidThis ends the Primitive immediately.
Parameters
broadcast:Boolean (default = true) — If false, this will not fire the endFunc method.
|
| init | () | method |
public function init(... args):voidInits a new BasePrimitive.
Parameters
... args — The target object
|
| render | () | method |
public function render(time:int):voidThis renders the primitive. This is the function that does all the "magic".
Parameters
time:int — The current getTimer() time.
|