03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

matrixX (ConvolutionFilter.matrixX property)<br />

public matrixX : Number<br />

The x dimension of the matrix (the number of columns in the matrix). The default value is 0.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 8<br />

Example<br />

The following example displays the matrixX property of filter.<br />

import flash.filters.ConvolutionFilter;<br />

var filter:ConvolutionFilter = new ConvolutionFilter(2, 3, [1, 0, 0, 1, 0,<br />

0], 6);<br />

trace(filter.matrixX); // 2<br />

matrixY (ConvolutionFilter.matrixY property)<br />

public matrixY : Number<br />

The y dimension of the matrix (the number of rows in the matrix). The default value is 0.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 8<br />

Example<br />

The following example displays the matrixY property of filter.<br />

import flash.filters.ConvolutionFilter;<br />

var filter:ConvolutionFilter = new ConvolutionFilter(2, 3, [1, 0, 0, 1, 0,<br />

0], 6);<br />

trace(filter.matrixY); // 3<br />

preserveAlpha (ConvolutionFilter.preserveAlpha<br />

property)<br />

public preserveAlpha : Boolean<br />

Indicates what the convolution applies to. A value of false indicates that the convolution<br />

applies to all channels, including the alpha channel. A value of true indicates that the<br />

convolution applies only to the color channels. The default value is true.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 8<br />

474 <strong>ActionScript</strong> classes

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!