Packagemx.geom
Classpublic class CompoundTransform
InheritanceCompoundTransform Inheritance Object

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

A CompoundTransform represents a 2D or 3D matrix transform. A compound transform represents a matrix that can be queried or set either as a 2D matrix, a 3D matrix, or as individual convenience transform properties such as x, y, scaleX, rotationZ, etc.



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  matrix : Matrix
The 2D matrix either set directly by the user, or composed by combining the transform center, scale, rotation and translation, in that order.
CompoundTransform
  matrix3D : Matrix3D
The 3D matrix either set directly by the user, or composed by combining the transform center, scale, rotation and translation, in that order.
CompoundTransform
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
  rotationX : Number
The rotationX, in degrees, of the transform.
CompoundTransform
  rotationY : Number
The rotationY, in degrees, of the transform.
CompoundTransform
  rotationZ : Number
The rotationZ, in degrees, of the transform.
CompoundTransform
  scaleX : Number
The scaleX of the transform.
CompoundTransform
  scaleY : Number
The scaleY of the transform.
CompoundTransform
  scaleZ : Number
The scaleZ of the transform.
CompoundTransform
  transformX : Number
The x value of the transform center.
CompoundTransform
  transformY : Number
The y value of the tansform center.
CompoundTransform
  transformZ : Number
The z value of the tansform center.
CompoundTransform
  x : Number
The x value of the transform.
CompoundTransform
  y : Number
The y value of the transform.
CompoundTransform
  z : Number
The z value of the transform.
CompoundTransform
Public Methods
 MethodDefined By
  
Constructor.
CompoundTransform
 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
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
  
Applies the delta to the transform's translation component.
CompoundTransform
 Inherited
Returns the primitive value of the specified object.
Object
Public Constants
 ConstantDefined By
  SOURCE_MATRIX : uint = 2
[static]
CompoundTransform
  SOURCE_MATRIX3D : uint = 3
[static]
CompoundTransform
Property Detail
matrixproperty
matrix:Matrix

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The 2D matrix either set directly by the user, or composed by combining the transform center, scale, rotation and translation, in that order.



Implementation
    public function get matrix():Matrix
    public function set matrix(value:Matrix):void
matrix3Dproperty 
matrix3D:Matrix3D

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The 3D matrix either set directly by the user, or composed by combining the transform center, scale, rotation and translation, in that order.



Implementation
    public function get matrix3D():Matrix3D
    public function set matrix3D(value:Matrix3D):void
rotationXproperty 
rotationX:Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The rotationX, in degrees, of the transform.



Implementation
    public function get rotationX():Number
    public function set rotationX(value:Number):void
rotationYproperty 
rotationY:Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The rotationY, in degrees, of the transform.



Implementation
    public function get rotationY():Number
    public function set rotationY(value:Number):void
rotationZproperty 
rotationZ:Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The rotationZ, in degrees, of the transform.



Implementation
    public function get rotationZ():Number
    public function set rotationZ(value:Number):void
scaleXproperty 
scaleX:Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The scaleX of the transform.



Implementation
    public function get scaleX():Number
    public function set scaleX(value:Number):void
scaleYproperty 
scaleY:Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The scaleY of the transform.



Implementation
    public function get scaleY():Number
    public function set scaleY(value:Number):void
scaleZproperty 
scaleZ:Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The scaleZ of the transform.



Implementation
    public function get scaleZ():Number
    public function set scaleZ(value:Number):void
transformXproperty 
transformX:Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The x value of the transform center. The transform center is kept fixed as rotation and scale are applied.



Implementation
    public function get transformX():Number
    public function set transformX(value:Number):void
transformYproperty 
transformY:Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The y value of the tansform center. The transform center is kept fixed as rotation and scale are applied.



Implementation
    public function get transformY():Number
    public function set transformY(value:Number):void
transformZproperty 
transformZ:Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The z value of the tansform center. The transform center is kept fixed as rotation and scale are applied.



Implementation
    public function get transformZ():Number
    public function set transformZ(value:Number):void
xproperty 
x:Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The x value of the transform.



Implementation
    public function get x():Number
    public function set x(value:Number):void
yproperty 
y:Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The y value of the transform.



Implementation
    public function get y():Number
    public function set y(value:Number):void
zproperty 
z:Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The z value of the transform.



Implementation
    public function get z():Number
    public function set z(value:Number):void
Constructor Detail
CompoundTransform()Constructor
public function CompoundTransform()

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Constructor.

Method Detail
translateBy()method
public function translateBy(x:Number, y:Number, z:Number = 0):void

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Applies the delta to the transform's translation component. Unlike setting the x, y, or z properties directly, this method can be safely called without changing the transform's concept of 'the source of truth'.

Parameters

x:Number
 
y:Number
 
z:Number (default = 0)

Constant Detail
SOURCE_MATRIXConstant
public static const SOURCE_MATRIX:uint = 2

SOURCE_MATRIX3DConstant 
public static const SOURCE_MATRIX3D:uint = 3