ActionScript 2.0 Language Reference |
|
|
|
| ActionScript classes > Matrix (flash.geom.Matrix) > 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
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 = 30; var radians:Number = (degrees/180) * Math.PI; myMatrix.c = Math.tan(radians); trace(myMatrix.c); // 0.577350269189626
|
|
|
|