ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
fl.motion 

AnimatorUniversal  - AS3 Flash

Packagefl.motion
Classpublic class AnimatorUniversal
InheritanceAnimatorUniversal Inheritance Animator3D Inheritance AnimatorBase Inheritance EventDispatcher Inheritance Object

Language Version: ActionScript 3.0
Product Version: Flash CS3
Runtime Versions: Flash Player 10, AIR 1.5, AIR 1.0

The AnimatorUniversal class applies an ActionScript description of a two and three-dimensional motion to a display object. The properties and methods of the AnimatorUniversal class control the playback of the motion, and Flash Player broadcasts events in response to changes in the motion's status.

If you plan to call methods of the AnimatorUniversal class within a function, declare the AnimatorUniversal instance outside of the function so the scope of the object is not restricted to the function itself. If you declare the instance within a function, Flash Player deletes the Animator instance at the end of the function as part of Flash Player's routine "garbage collection" and the target object will not animate.

Default MXML Propertymotion

Related API Elements



Public Properties
 PropertyDefined By
 InheritedautoRewind : Boolean = false
Sets the animation to restart after it finishes.
AnimatorBase
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 InheritedframeEvent : String
The name of the event object created by the Event.ENTER_FRAME event.
AnimatorBase
 InheritedinitialPosition : Array
[override] [write-only] Establishes, the x-, y-, and z- coordinates of the display object.
Animator3D
 InheritedinstanceFactoryClass : Class
When creating instances with ActionScript, this is the class that creates the instance.
AnimatorBase
 InheritedisPlaying : Boolean
[read-only] Indicates whether the animation is currently playing.
AnimatorBase
 Inheritedmotion : MotionBase
The object that contains the motion tween properties for the animation.
AnimatorBase
 InheritedmotionArray : Array
The Array of objects that contains the motion tween properties for the animation.
AnimatorBase
 InheritedorientToPath : Boolean = false
Sets the position of the display object along the motion path.
AnimatorBase
 InheritedplaceholderName : String
When creating instances with ActionScript, this is the instance that appears on stage that we will replace.
AnimatorBase
 InheritedpositionMatrix : Matrix
The Matrix object that applies an overall transformation to the motion path.
AnimatorBase
 InheritedrepeatCount : int = 1
Number of times to repeat the animation.
AnimatorBase
 InheritedsceneName : String
A reference for exported scenes, for 3D motion, so the scene can be loaded into a parent timeline.
AnimatorBase
 InheritedspanEnd : int
[read-only] Returns the frame of the target's parent on which the animation of the target ends.
AnimatorBase
 InheritedspanStart : int
[read-only] Returns the frame of the target's parent on which the animation of the target begins.
AnimatorBase
 Inheritedtarget : DisplayObject
The display object being animated.
AnimatorBase
 InheritedtargetName : String
The name of the target object as seen by the parent DisplayObjectContainer.
AnimatorBase
 InheritedtargetParent : DisplayObjectContainer
The target parent DisplayObjectContainer being animated, which can be used in conjunction with targetName to retrieve the target object after it is removed and then replaced on the timeline.
AnimatorBase
 InheritedtargetParentButton : SimpleButton
AnimatorBase
 InheritedtargetState3D : Array
The initial orientation for the target object.
AnimatorBase
 Inheritedtime : int
A zero-based integer that indicates and controls the time in the current animation.
AnimatorBase
 InheritedtransformationPoint : Point
The point of reference for rotating or scaling a display object.
AnimatorBase
 InheritedtransformationPointZ : int
The z-coordinate point of reference for rotating or scaling a display object.
AnimatorBase
 InheritedusingCurrentFrame : Boolean
[read-only] Indicates whether the currentFrame property is checked whenever a new frame is entered and whether the target's animation is synchronized to the frames in its parent's timeline, or always advancing no matter what the parent's current frame is.
AnimatorBase
Public Methods
 MethodDefined By
  
Creates an AnimatorUniversal object motion to a display object.
AnimatorUniversal
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
EventDispatcher
 Inherited
Dispatches an event into the event flow.
EventDispatcher
 Inherited
end(reset:Boolean = false, stopEnterFrame:Boolean = true, pastLastFrame:Boolean = false):void
Stops the animation and Flash Player goes immediately to the last frame in the animation sequence.
AnimatorBase
 Inherited
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
EventDispatcher
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
nextFrame(reset:Boolean = false, stopEnterFrame:Boolean = true):void
Advances Flash Player to the next frame in the animation sequence.
AnimatorBase
 Inherited
Pauses the animation until you call the resume() method.
AnimatorBase
 Inherited
play(startTime:int = -1, startEnterFrame:Boolean = true):void
Begins the animation.
AnimatorBase
 Inherited
processCurrentFrame(parent:MovieClip, anim:AnimatorBase, startEnterFrame:Boolean, playOnly:Boolean = false):void
[static]
AnimatorBase
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
registerParentFrameHandler(parent:MovieClip, anim:AnimatorBase, spanStart:int, repeatCount:int = 0, useCurrentFrame:Boolean = false):void
[static] Registers the given MovieClip and an AnimatorBase instance for a child of that MovieClip.
AnimatorBase
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
EventDispatcher
 Inherited
Resumes the animation after it has been paused by the pause() method.
AnimatorBase
 Inherited
Sets Flash Player to the first frame of the animation.
AnimatorBase
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Initiates frame events.
AnimatorBase
 Inherited
Stops the animation and Flash Player goes back to the first frame in the animation sequence.
AnimatorBase
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
useCurrentFrame(enable:Boolean, spanStart:int):void
Sets the currentFrame property whenever a new frame is entered, and sets whether the target's animation is synchronized to the frames in its parent MovieClips's timeline.
AnimatorBase
 Inherited
Returns the primitive value of the specified object.
Object
 Inherited
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
EventDispatcher
Protected Methods
 MethodDefined By
 Inherited
[static]
Animator3D
 Inherited
[static]
Animator3D
  
[override]
AnimatorUniversal
Events
 Event Summary Defined By
 Inherited[broadcast event] Dispatched when the Flash Player or AIR application gains operating system focus and becomes active.EventDispatcher
 Inherited[broadcast event] Dispatched when the Flash Player or AIR application operating loses system focus and is becoming inactive.EventDispatcher
 InheritedDispatched when the motion finishes playing, either when it reaches the end, or when the motion is interrupted by a call to the stop() or end() methods.AnimatorBase
 InheritedDispatched when the motion starts playing.AnimatorBase
 InheritedDispatched when the motion has changed and the screen has been updated.AnimatorBase
 InheritedDispatched when the Animator's time value has changed, but the screen has not yet been updated (i.e., the motionUpdate event).AnimatorBase
Constructor Detail

AnimatorUniversal

()Constructor
public function AnimatorUniversal()

Language Version: ActionScript 3.0
Product Version: Flash CS3
Runtime Versions: Flash Player 10, AIR 1.5, AIR 1.0

Creates an AnimatorUniversal object motion to a display object.

Related API Elements

Method Detail

setTargetState

()method
override protected function setTargetState():void