EasyManua.ls Logo

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE - C (Matrix.C Property); Clone (Matrix.clone Method)

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
1378 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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.

Table of Contents

Related product manuals