Adobe® Flex® 4 Language Reference
Hide Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
mx.geom 
CompoundTransform 
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

matrix

property
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

matrix3D

property 
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

rotationX

property 
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

rotationY

property 
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

rotationZ

property 
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

scaleX

property 
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

scaleY

property 
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

scaleZ

property 
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

transformX

property 
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

transformY

property 
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

transformZ

property 
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

x

property 
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

y

property 
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

z

property 
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_MATRIX

Constant
public static const SOURCE_MATRIX:uint = 2

SOURCE_MATRIX3D

Constant 
public static const SOURCE_MATRIX3D:uint = 3