The AnimatorFactoryBase class provides ActionScript-based support to display and tween multiple targeted objects with one Motion dynamically at runtime. AnimatorFactoryBase uses the AnimatorBase class to assign one Motion (derived from MotionBase) to multiple tween instances (targeted objects) whereas the AnimatorBase class associates a single Motion instance with a single targeted tween object. The AnimatorFactoryBase class should not be used on its own. Use its subclasses: AnimatorFactory or AnimatorFactory3D, instead.
[read-only] The MotionBase instance that the AnimatorFactoryBase instance and its target objects are associated with.
[write-only] A reference for exported scenes, for 3D motion, so the scene can be loaded into a parent timeline.
[write-only] The point of reference for rotating or scaling a display object.
[write-only] The z-coordinate point of reference for rotating or scaling a display object.
Creates an instance of the AnimatorFactoryBase class.
Creates and returns an AnimatorBase instance whose target property is set to the DisplayObject (if applicable) that is the targetName property of the targetParent, and whose Motion property is stored in the AnimatorFactoryBase instance upon creation.
References the parent DisplayObjectContainer and then creates and returns an AnimatorBase instance whose target property is set to the DisplayObject (if applicable) that is the targetName property of the targetParent, and whose Motion property is stored in the AnimatorFactoryBase instance upon creation.
The MotionBase instance that the AnimatorFactoryBase instance and its target objects are associated with. The MotionBase instance stores the animated properties and their values.
The point of reference for rotating or scaling a display object. The transformationPoint property (or setter) is overridden in the AnimatorFactory3D subclass, In 3D, the points are not percentages like they are in 2D; they are absolute values of the original object's transformation point.
motion:MotionBase — The associated MotionBase instance.
target:DisplayObject — The display object using the motion tween.
autoPlay:Boolean (default = true) — The value (default is true) specifying whether the animation automatically begins to play.
startFrame:int (default = -1) — The frame on which the animation starts relative to the parent's timeline. If the parent's timeline is shorter than the duration of the associated Motion, then startFrame indicates the number of frames after this addTarget call is made before the target animation begins.
useCurrentFrame:Boolean (default = false) — A flag specifying, if true, to use the parent's currentFrame property to determine which animation frame the target object should be on.
AnimatorBase — A new AnimatorBase instance.
targetParent:DisplayObject — The parent DisplayObjectContainer.
targetName:String — The target's instance name as seen by its parent.
startFrame:int (default = -1) — The frame on which the animation starts relative to the parent's timeline. If the parent's timeline is shorter than the duration of the associated Motion, then startFrame indicates the number of frames after this addTarget call is made before the target animation begins. If the parent is a SimpleButton, then startFrame is used to indicate the button state in which the motion should be applied: 0 for upState, 1 for overState, 2 for downState.
initialPosition:Array (default = null) — if not null, used to set initialPosition property on generated AnimatorBase instance.
zIndex:int (default = -1) — If the parent is a SimpleButton, then this value is the 0-based z order of the object to which to apply the animation. If there is only a single object in the button, then zIndex should be set to -1, not 0. defaults to -1.
placeholderName:String (default = null) — if not null, used to specify instance on stage to be replaced by DisplayObject created by instanceNameFactoryClass. Defaults to null.
instanceFactoryClass:Class (default = null) — if not null, class used to create a DisplayObject that will replace a placeholder. Defaults to null.