Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Adobe Flex SDK 4.1 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Browser: Safari
Language Found: English
Description
http://livedocs.adobe.com/flex/3/langref/flash/geom/Transform.html
Under Matrix and Matrix3D it states...
"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." (asdoc flash.geom.Transform.matrix)."
The above is correct for a Sprite, but not with a UIComponent or sub classes of UIComponent
var sprite:Sprite = new Sprite();
var uiComponent:UIComponent = new UIComponent();
var matrix3D:Matrix3D = new Matrix3D()
matrix3D.appendScale( 2, 2, 1 );
sprite.transform.matrix3D = matrix3D
trace( "sprite:", sprite.transform.matrix ) // Is null as described in the docs
uiComponent.transform.matrix3D = matrix3D
trace( "uiComponent:", uiComponent.transform.matrix ) // Isn't null
var matrix:Matrix = new Matrix()
matrix.translate( 10, 10 );
sprite.transform.matrix = matrix;
trace( sprite.transform.matrix3D ) // Is null as described in the docs
uiComponent.transform.matrix = matrix
trace( "uiComponent:", uiComponent.transform.matrix3D ) // Isn't null