套件 | mx.geom |
類別 | public class Transform |
繼承 | Transform Transform Object |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
target
property which is the IVisualElement that the Transform has been assigned to.
The IVisualElement implementations typically set the target to themselves when the Transform
is assigned to their transform
property.
Changes to the Transform properties automatically get pushed to the target. Reading from the Transform properties reads directly from the target's transform.
更多範例
相關 API 元素
屬性 | 定義自 | ||
---|---|---|---|
colorTransform : flash.geom:ColorTransform
ColorTransform 物件,含有調整整個顯示物件中顏色的值。 | Transform | ||
concatenatedColorTransform : flash.geom:ColorTransform [唯讀]
ColorTransform 物件,代表套用至顯示物件及其所有父物件之根層級中的混合顏色轉換。 | Transform | ||
concatenatedMatrix : Matrix [唯讀]
Matrix 物件,代表顯示物件及其所有父物件之根層級中的混合變形矩陣。 | Transform | ||
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
matrix : Matrix
Matrix 物件,含有變更顯示物件之縮放、旋轉和轉移的值。 | Transform | ||
matrix3D : Matrix3D [覆寫]
Provides access to the Matrix3D object of a three-dimensional display object. | Transform | ||
perspectiveProjection : PerspectiveProjection
讓使用者存取三維顯示物件的 PerspectiveProjection 物件。 | Transform | ||
pixelBounds : Rectangle [唯讀]
Rectangle 物件,定義舞台上顯示物件的矩形邊界。 | Transform | ||
target : IVisualElement
The IVisualElement with which the Transform will keep in synch. | Transform |
方法 | 定義自 | ||
---|---|---|---|
Transform(src:DisplayObject = null)
Constructor. | Transform | ||
[覆寫]
Returns a Matrix3D object, which can transform the space of a specified
display object in relation to the current display object's space. | Transform | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
matrix3D | 屬性 |
matrix3D:Matrix3D
[覆寫] 語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Provides access to the Matrix3D object of a three-dimensional display object. The Matrix3D object represents a transformation matrix that determines the display object's position and orientation. A Matrix3D object can also perform perspective projection.
If the matrix
property is set to a value (not null
), the
matrix3D
property is null
. And if the matrix3D
property
is set to a value (not null
), the matrix
property is null
.
實作
override public function get matrix3D():Matrix3D
override public function set matrix3D(value:Matrix3D):void
target | 屬性 |
target:IVisualElement
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
The IVisualElement with which the Transform will keep in synch. The IVisualElement implementations will typically set the target to themselves when the Transform is assigned to their transform property.
實作
public function get target():IVisualElement
public function set target(value:IVisualElement):void
Transform | () | 建構函式 |
public function Transform(src:DisplayObject = null)
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Constructor.
參數src:DisplayObject (default = null ) — The target of the transform.
|
getRelativeMatrix3D | () | 方法 |
override public function getRelativeMatrix3D(relativeTo:DisplayObject):Matrix3D
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Returns a Matrix3D object, which can transform the space of a specified
display object in relation to the current display object's space. You can use the
getRelativeMatrix3D()
method to move one three-dimensional display
object relative to another three-dimensional display object.
參數
relativeTo:DisplayObject — The display object relative to which the transformation occurs.
To get a Matrix3D object relative to the stage, set the parameter to the root
or stage object. To get the world-relative matrix of the display object,
set the parameter to a display object that has a perspective transformation applied to it.
|
Matrix3D — A Matrix3D object that can be used to transform the space from the relativeTo
display object to the current display object space.
|
Tue Jun 12 2018, 03:47 PM Z