Matrix (flash.geom.Matrix)
767
Availability:
ActionScript 1.0; Flash Player 8
Example
The following example creates the Matrix object
myMatrix
and sets its
b
value.
import flash.geom.Matrix;
var myMatrix:Matrix = new Matrix();
trace(myMatrix.b); // 0
var degrees:Number = 45;
var radians:Number = (degrees/180) Math.PI;
myMatrix.b = radians;
trace(myMatrix.b); // 0.785398163397448
c (Matrix.c property)
public c : Number
The value in the second row and first column of the Matrix object, which affects the
positioning of pixels along the
x
axis when rotating or skewing an image.
Availability:
ActionScript 1.0; Flash Player 8
Example
The following example creates the Matrix object
myMatrix
and sets its
c
value.
import flash.geom.Matrix;
var myMatrix:Matrix = new Matrix();
trace(myMatrix.c); // 0
var degrees:Number = 45;
var radians:Number = (degrees/180) Math.PI;
myMatrix.c = radians;
trace(myMatrix.c); // 0.785398163397448
clone (Matrix.clone method)
public clone() : Matrix
Returns a new Matrix object that is a clone of this matrix, with an exact copy of the contained
object.
Availability:
ActionScript 1.0; Flash Player 8
Returns
flash.geom.Matrix
- A Matrix object.
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...