| Package | fl.motion |
| Class | public class Animator |
| Inheritance | Animator AnimatorBase EventDispatcher Object |
| Language Version: | ActionScript 3.0 |
| Product Version: | Flash CS3 |
| Runtime Versions: | Flash Player 9.0.28.0, AIR 1.0 |
If you plan to call methods of the Animator class within a function, declare the Animator 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
See also
| Method | Defined By | ||
|---|---|---|---|
Creates an Animator object to apply the XML-based motion tween description to a display object. | Animator | ||
![]() | 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 | |
![]() |
Dispatches an event into the event flow. | EventDispatcher | |
![]() |
Stops the animation and Flash Player goes immediately to the last frame in the animation sequence. | AnimatorBase | |
[static]
Creates an Animator object from a string of XML. | Animator | ||
![]() |
Checks whether the EventDispatcher object has any listeners registered for a specific type
of event. | EventDispatcher | |
![]() |
Indicates whether an object has a specified property defined. | Object | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | |
![]() |
Advances Flash Player to the next frame in the animation sequence. | AnimatorBase | |
![]() |
Pauses the animation until you call the resume() method. | AnimatorBase | |
![]() |
Begins the animation. | AnimatorBase | |
![]() | processCurrentFrame(parent:MovieClip, anim:AnimatorBase, startEnterFrame:Boolean, playOnly:Boolean = false):void [static] | AnimatorBase | |
![]() |
Indicates whether the specified property exists and is enumerable. | Object | |
![]() | [static] | AnimatorBase | |
![]() | 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 | |
![]() |
Removes a listener from the EventDispatcher object. | EventDispatcher | |
![]() |
Resumes the animation after it has been paused
by the pause() method. | AnimatorBase | |
![]() |
Sets Flash Player to the first frame of the animation. | AnimatorBase | |
![]() |
Sets the availability of a dynamic property for loop operations. | Object | |
![]() | AnimatorBase | ||
![]() |
Stops the animation and Flash Player goes back to the first frame in the animation sequence. | AnimatorBase | |
![]() |
Returns the string representation of the specified object. | Object | |
![]() |
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 | |
![]() |
Returns the primitive value of the specified object. | Object | |
![]() |
Checks whether an event listener is registered with this EventDispatcher object or any of
its ancestors for the specified event type. | EventDispatcher | |
| Animator | () | Constructor |
public function Animator(xml:XML = null, target:DisplayObject = null)| Language Version: | ActionScript 3.0 |
| Product Version: | Flash CS3 |
| Runtime Versions: | Flash Player 9.0.28.0, AIR 1.0 |
Creates an Animator object to apply the XML-based motion tween description to a display object.
Parametersxml:XML (default = null) — An E4X object containing an XML-based motion tween description.
| |
target:DisplayObject (default = null) — The display object using the motion tween.
|
See also
| fromXMLString | () | method |
public static function fromXMLString(xmlString:String, target:DisplayObject = null):Animator| Language Version: | ActionScript 3.0 |
| Product Version: | Flash CS3 |
| Runtime Versions: | Flash Player 9.0.28.0, AIR 1.0 |
Creates an Animator object from a string of XML. This method is an alternative to using the Animator constructor, which accepts an E4X object instead.
Parameters
xmlString:String — A string of XML describing the motion tween.
| |
target:DisplayObject (default = null) — The display object using the motion tween.
|
Animator — An Animator instance that applies the specified xmlString to the specified target.
|
See also