Package | spark.effects |
Class | public class AnimateTransform |
Inheritance | AnimateTransform ![]() ![]() ![]() ![]() |
Subclasses | AnimateTransform3D, Move, Rotate, Scale |
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
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 Syntax![expanded expanded](../../images/expanded.gif)
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
Property | Defined By | ||
---|---|---|---|
![]() | constructor : Object
A reference to the class object or constructor function for a given object instance. | Object |
Method | Defined By | ||
---|---|---|---|
![]() | 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 | |
![]() |
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 | |
![]() |
Indicates whether the specified property exists and is enumerable. | Object | |
![]() |
Removes a listener from the EventDispatcher object. | EventDispatcher | |
![]() |
Sets the availability of a dynamic property for loop operations. | Object | |
![]() |
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | |
![]() |
Returns the string representation of the specified object. | Object | |
![]() |
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 |
Wed Nov 21 2018, 06:34 AM -08:00