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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Methods inherited from class Object<br />

addProperty (Object.addProperty method), hasOwnProperty<br />

(Object.hasOwnProperty method), isPropertyEnumerable<br />

(Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf<br />

method), registerClass (Object.registerClass method), toString<br />

(Object.toString method), unwatch (Object.unwatch method), valueOf<br />

(Object.valueOf method), watch (Object.watch method)<br />

a (Matrix.a property)<br />

public a : Number<br />

The value in the first row <strong>and</strong> first column of the Matrix object, which affects the positioning<br />

of pixels along the x axis when scaling or rotating an image.<br />

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

Example<br />

The following example creates the Matrix object myMatrix <strong>and</strong> sets its a value.<br />

import flash.geom.Matrix;<br />

var myMatrix:Matrix = new Matrix();<br />

trace(myMatrix.a); // 1<br />

myMatrix.a = 2;<br />

trace(myMatrix.a); // 2<br />

b (Matrix.b property)<br />

public b : Number<br />

The value in the first row <strong>and</strong> second column of the Matrix object, which affects the<br />

positioning of pixels along the y axis when rotating or skewing an image.<br />

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

Example<br />

The following example creates the Matrix object myMatrix <strong>and</strong> sets its b value.<br />

import flash.geom.Matrix;<br />

var myMatrix:Matrix = new Matrix();<br />

trace(myMatrix.b); // 0<br />

776 <strong>ActionScript</strong> classes

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

Saved successfully!

Ooh no, something went wrong!