BETA ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Hide Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes

Language Reference only
Filters: AIR 32.0 and earlier, Flash Player 32.0 and earlier, Flash Lite 4
None
Hide Filters
spark.effects 

AnimateTransform  - AS3 Flex

(Preview)
Packagespark.effects
Classpublic class AnimateTransform
InheritanceAnimateTransform Inheritance Animate Inheritance Effect Inheritance EventDispatcher Inheritance Object
Subclasses AnimateTransform3D, Move, Rotate, Scale

Language Version: ActionScript 3.0
Product Version: Flex 4
Runtime Versions: Flash Player 10, AIR 1.5

The AnimateTransform effect controls all transform-related animations on target objects. Transform operations, such as translation, scale, and rotation, are combined into single operations that act in parallel to avoid any conflict when modifying overlapping property values. This effect works by combining all current transform effects on a target into one single effect instance for that target. That is, multiple transform effects within the same Parallel effect are combined (transform effects within a Sequence run separately).

While this combination of multiple transform effects happens internally, it does force certain constraints that should be considered:

  • The transformCenter for the target object is globally applied to all transform effects on that target, so it should be set to the same value on all targets.
  • Transform effects ignore repeat parameters, since the effects of any single Transform effect impact all other Transform effects running on the same target. Effects can still be repeated by encapsulating them in a CompositeEffect.
  • The subclasses of the AnimateTransform class provide an easy way for simple manipulations of the transform effect, but for full control and fine-grained manipulation of the underlying keyframe times and values, use the AnimateTransform effect directly.

An additional constraint of this effect and its subclasses is that the target must be of type UIComponent or GraphicElement (or a subclass of those classes), or any other object which has similarly defined and implemented transformAround() and transformPointToParent() functions.

This effect is not intended to be used directly, but rather exposes common functionality used by its subclasses. To use transform effects, use the subclass effects (Move, Move3D, Scale, Scale3D, Rotate, and Rotate3D).

MXML SyntaxexpandedHide MXML Syntax

The <s:AnimateTransform> tag inherits all of the tag attributes of its superclass, and adds the following tag attributes:

  <s:AnimateTransform
    Properties
    id="ID"
    applyChangesPostLayout="false"
    autoCenterTransform="false"
    transformX="0"
    transformY="0"
    transformZ="0"
  />
  

Default MXML PropertymotionPaths

Related API Elements



Public Properties
 PropertyDefined By
  applyChangesPostLayout : Boolean
Subclasses of AnimateTransform use this flag to specify whether the effect changes transform values used by the layout manager, or whether it changes values used after layout is run.
AnimateTransform
  autoCenterTransform : Boolean = false
Specifies whether the transform effect occurs around the center of the target, (width/2, height/2) when the effect begins playing.
AnimateTransform
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  transformX : Number
Sets the x coordinate for the transform center, unless overridden by the autoCenterTransform property.
AnimateTransform
  transformY : Number
Sets the y coordinate for the transform center, unless overridden by the autoCenterTransform property.
AnimateTransform
  transformZ : Number
Sets the z coordinate for the transform center, unless overridden by the autoCenterTransform property.
AnimateTransform
Protected Properties
 PropertyDefined By
Public Methods
 MethodDefined By
  
AnimateTransform(target:Object = null)
Constructor.
AnimateTransform
 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
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
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
EventDispatcher
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 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
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
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
Property Detail
Constructor Detail