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.

Valeur <strong>de</strong> l'entier Valeur <strong>de</strong> chaîne Illustration Description<br />

7 "difference" Compare les couleurs<br />

primaires <strong>du</strong> bouton<br />

avec celles <strong>de</strong> son<br />

arrière-plan et soustrait<br />

la plus foncée <strong>de</strong>s <strong>de</strong>ux<br />

couleurs <strong>de</strong> la plus<br />

claire. Ce réglage est<br />

habituellement utilisé<br />

pour obtenir <strong>de</strong>s<br />

couleurs plus<br />

vibrantes.<br />

Par exemple, si le<br />

bouton a un pixel ayant<br />

une valeur RVB <strong>de</strong><br />

0xFFCC33, et le pixel<br />

d'arrière-plan une<br />

valeur RVB <strong>de</strong><br />

0xDDF800, la valeur<br />

RVB résultante pour le<br />

pixel affiché est <strong>de</strong><br />

0x222C33 (parce que<br />

0xFF - 0xDD = 0x22,<br />

0xF8 - 0xCC = 0x2C<br />

et 0x33 - 0x00 =<br />

0x33).<br />

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

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

Saved successfully!

Ooh no, something went wrong!