mx.geom

# CompoundTransform - AS3 Flex

Package | mx.geom
Class | public class CompoundTransform
Inheritance | CompoundTransform 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
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | constructor : 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
|  | 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
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | CompoundTransform() Constructor. | CompoundTransform
|  | hasOwnProperty(name:String):Boolean Indicates whether an object has a specified property defined. | Object
|  | isPrototypeOf(theClass:Object):Boolean Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter. | Object
|  | propertyIsEnumerable(name:String):Boolean Indicates whether the specified property exists and is enumerable. | Object
|  | setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void Sets the availability of a dynamic property for loop operations. | Object
|  | toLocaleString():String Returns the string representation of this object, formatted according to locale-specific conventions. | Object
|  | toString():String Returns the string representation of the specified object. | Object
|  | translateBy(x:Number, y:Number, z:Number = 0):void Applies the delta to the transform's translation component. | CompoundTransform
|  | valueOf():Object Returns the primitive value of the specified object. | Object

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` — The x value of the transform.
| `y:Number` — The y value of the transform.
| `z:Number` (default = `0`)`` — The z value of the transform.

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00