Package | org.papervision3d.core.animation.controllers |
Class | public class SimpleController |
Inheritance | SimpleController KeyFrameController AbstractController flash.events.EventDispatcher |
This class controls the animation of simple properties of a DisplayObject3D.
Property | Defined by | ||
---|---|---|---|
duration : uint = 0 | AbstractController | ||
frames : Array | AbstractController | ||
geometry : GeometryObject3D
targeted geometry.
| KeyFrameController | ||
playing : Boolean | AbstractController | ||
property : String the targeted property
| SimpleController | ||
target : DisplayObject3D
the targeted DisplayObject3D
| SimpleController |
Method | Defined by | ||
---|---|---|---|
SimpleController(target:DisplayObject3D, property:String)
constructor.
| SimpleController | ||
addFrame(frame:AnimationFrame):void
| AbstractController | ||
findFrameByName(name:String, ignoreTrailingDigits:Boolean):AnimationFrame
| AbstractController | ||
gotoAndPlay(frame:uint = 0):void
| AbstractController | ||
gotoAndStop(frame:uint = 0):void
| AbstractController | ||
play():void
play animation.
| AbstractController | ||
stop():void
stop animation.
| AbstractController | ||
tick(dt:Number):void
Tick.
| SimpleController |
Constant | Defined by | ||
---|---|---|---|
ROTATION_X : String = "rotationX" [static]
| SimpleController | ||
ROTATION_Y : String = "rotationY" [static]
| SimpleController | ||
ROTATION_Z : String = "rotationZ" [static]
| SimpleController | ||
SCALE : String = "scale" [static]
| SimpleController | ||
SCALE_X : String = "scaleX" [static]
| SimpleController | ||
SCALE_Y : String = "scaleY" [static]
| SimpleController | ||
SCALE_Z : String = "scaleZ" [static]
| SimpleController | ||
TRANSFORM : String = "transform" [static]
| SimpleController | ||
TRANSLATION_X : String = "x" [static]
| SimpleController | ||
TRANSLATION_Y : String = "y" [static]
| SimpleController | ||
TRANSLATION_Z : String = "z" [static]
| SimpleController |
property | property |
public var property:String
the targeted property
target | property |
public var target:DisplayObject3D
the targeted DisplayObject3D
SimpleController | () | constructor |
public function SimpleController(target:DisplayObject3D, property:String)
constructor.
Parameterstarget:DisplayObject3D — the object this controller targets.
|
|
property:String — the targeted property.
|
tick | () | method |
public override function tick(dt:Number):void
Tick. Called by the animation engine on each frame.
Parametersdt:Number — current time in milliseconds
|
ROTATION_X | constant |
public static const ROTATION_X:String = "rotationX"
ROTATION_Y | constant |
public static const ROTATION_Y:String = "rotationY"
ROTATION_Z | constant |
public static const ROTATION_Z:String = "rotationZ"
SCALE | constant |
public static const SCALE:String = "scale"
SCALE_X | constant |
public static const SCALE_X:String = "scaleX"
SCALE_Y | constant |
public static const SCALE_Y:String = "scaleY"
SCALE_Z | constant |
public static const SCALE_Z:String = "scaleZ"
TRANSFORM | constant |
public static const TRANSFORM:String = "transform"
TRANSLATION_X | constant |
public static const TRANSLATION_X:String = "x"
TRANSLATION_Y | constant |
public static const TRANSLATION_Y:String = "y"
TRANSLATION_Z | constant |
public static const TRANSLATION_Z:String = "z"