Skip to main content
Participant
September 17, 2010
Question

question about the Matrix.createGradientBox

  • September 17, 2010
  • 1 reply
  • 556 views

I am wonering how the matrix is calculated for http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/geom/Matrix.html#createGradientBox%28%29

What steps does it take to create the matrix from the parameters? I found the description unclear.

You could just answer with an equivalent set of matrix operations using the parameters.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
September 17, 2010

experiment:

var myMatrix:Matrix = new Matrix();
trace(myMatrix.toString());
myMatrix.createGradientBox(3276.8, 1638.4, 0, 0, 0);
trace(myMatrix.toString());