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

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

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

Résumé <strong>de</strong>s événements<br />

Evénement Description<br />

onKeyDown =<br />

function() {}<br />

onKeyUp =<br />

function() {}<br />

Résumé <strong>de</strong> la métho<strong>de</strong><br />

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

Notifié lorsqu'une touche est enfoncée.<br />

Notifié lorsqu'une touche est relâchée.<br />

Modificateurs Signature Description<br />

static addListener(listener<br />

:Object) : Void<br />

Enregistre un objet pour qu'il reçoive la notification<br />

onKeyDown et onKeyUp.<br />

static getAscii() : Number Renvoie le co<strong>de</strong> ASCII <strong>de</strong> la <strong>de</strong>rnière touche enfoncée<br />

ou relâchée.<br />

static getCo<strong>de</strong>() : Number Renvoie la valeur <strong>de</strong> co<strong>de</strong> <strong>de</strong> touche <strong>de</strong> la <strong>de</strong>rnière<br />

touche enfoncée.<br />

static isAccessible() :<br />

Boolean<br />

static isDown(co<strong>de</strong>:Number)<br />

: Boolean<br />

static isToggled(co<strong>de</strong>:Numbe<br />

r) : Boolean<br />

static removeListener(liste<br />

ner:Object) :<br />

Boolean<br />

Renvoie une valeur booléenne indiquant, en fonction<br />

<strong>de</strong>s restrictions <strong>de</strong> sécurité, si la <strong>de</strong>rnière touche<br />

enfoncée peut être accessible aux autres fichiers<br />

SWF.<br />

Renvoie true si la touche spécifiée dans keyco<strong>de</strong> est<br />

enfoncée ; false sinon.<br />

Renvoie true si la touche Verr Maj ou Verr num est<br />

activée (activation ou désactivation <strong>de</strong> l'état actif) ;<br />

false sinon.<br />

Supprime un objet précé<strong>de</strong>mment enregistré auprès<br />

<strong>de</strong> Key.addListener().<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 />

Key 693

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

Saved successfully!

Ooh no, something went wrong!