03.07.2013 Views

Guide de reference du langage ActionScript 2.0 - PowWeb

Guide de reference du langage ActionScript 2.0 - PowWeb

Guide de reference du langage ActionScript 2.0 - PowWeb

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Métho<strong>de</strong>s héritées <strong>de</strong> la classe Object<br />

addProperty (métho<strong>de</strong> Object.addProperty), hasOwnProperty (métho<strong>de</strong><br />

Object.hasOwnProperty), isPropertyEnumerable (métho<strong>de</strong><br />

Object.isPropertyEnumerable), isPrototypeOf (métho<strong>de</strong> Object.isPrototypeOf),<br />

registerClass (métho<strong>de</strong> Object.registerClass), toString (métho<strong>de</strong><br />

Object.toString), unwatch (métho<strong>de</strong> Object.unwatch), valueOf (métho<strong>de</strong><br />

Object.valueOf), watch (métho<strong>de</strong> Object.watch)<br />

a (propriété Matrix.a)<br />

public a : Number<br />

Dans la première ligne et la première colonne <strong>de</strong> l'objet Matrix, la valeur affectant le<br />

positionnement <strong>de</strong>s pixels sur l'axe x lors <strong>du</strong> redimensionnement ou <strong>de</strong> la rotation d'une<br />

image.<br />

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

Exemple<br />

L'exemple suivant crée l'objet Matrix myMatrix et définit sa valeur a.<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 (propriété Matrix.b)<br />

public b : Number<br />

Dans la première ligne et la <strong>de</strong>uxième colonne <strong>de</strong> l'objet Matrix, la valeur affectant le<br />

positionnement <strong>de</strong>s pixels sur l'axe y lors <strong>de</strong> la rotation ou <strong>de</strong> l'inclinaison d'une image.<br />

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

Exemple<br />

L'exemple suivant crée l'objet Matrix myMatrix et définit sa valeur b.<br />

import flash.geom.Matrix;<br />

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

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

790 Chapitre 2: Classes <strong>ActionScript</strong>

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

Saved successfully!

Ooh no, something went wrong!