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.

Résumé <strong>de</strong>s constructeurs<br />

Signature Description<br />

Object() Crée un objet Object et stocke une référence à la métho<strong>de</strong> constructeur<br />

<strong>de</strong> l'objet dans la propriété constructor <strong>de</strong> ce <strong>de</strong>rnier.<br />

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

Modificateurs Signature Description<br />

1026 Chapitre 2: Classes <strong>ActionScript</strong><br />

addProperty(name:Str Crée une propriété <strong>de</strong> lecture/définition.<br />

ing,<br />

getter:Function,<br />

setter:Function) :<br />

Boolean<br />

hasOwnProperty(name: Indique si la propriété spécifiée d'un objet est définie.<br />

String) : Boolean<br />

isPropertyEnumerable<br />

(name:String) :<br />

Boolean<br />

isPrototypeOf(theCla<br />

ss:Object) : Boolean<br />

static registerClass(name:S<br />

tring,<br />

theClass:Function) :<br />

Boolean<br />

Indique si la propriété spécifiée existe et est<br />

énumérable.<br />

Indique si une occurrence <strong>de</strong> la classe Object figure<br />

dans la chaîne <strong>de</strong> prototypes <strong>de</strong> l'objet spécifié en tant<br />

qu'argument.<br />

Associe un symbole <strong>de</strong> clip à une classe d'objet<br />

<strong>ActionScript</strong>.<br />

toString() : String Convertit l'objet spécifié en chaîne et renvoie cette<br />

<strong>de</strong>rnière.<br />

unwatch(name:String)<br />

: Boolean<br />

Supprime un point d'observation créé par<br />

Object.watch().<br />

valueOf() : Object Renvoie la valeur primitive <strong>de</strong> l'objet spécifié.<br />

watch(name:String,<br />

callback:Function,<br />

[userData:Object]) :<br />

Boolean<br />

Enregistre un gestionnaire d'événements à appeler<br />

lorsque la propriété spécifiée d'un objet <strong>ActionScript</strong><br />

change.

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

Saved successfully!

Ooh no, something went wrong!