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> la métho<strong>de</strong><br />

Modificateurs Signature Description<br />

addListener(listener<br />

:Object) : Boolean<br />

static getFontList() :<br />

Array<br />

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

Enregistre un objet pour recevoir les notifications<br />

d'événement TextField.<br />

getDepth() : Number Renvoie la profon<strong>de</strong>ur d'un champ texte.<br />

getNewTextFormat() :<br />

TextFormat<br />

getTextFormat([begin<br />

In<strong>de</strong>x:Number],<br />

[endIn<strong>de</strong>x:Number]) :<br />

TextFormat<br />

removeListener(liste<br />

ner:Object) :<br />

Boolean<br />

removeTextField() :<br />

Void<br />

replaceSel(newText:S<br />

tring) : Void<br />

replaceText(beginInd<br />

ex:Number,<br />

endIn<strong>de</strong>x:Number,<br />

newText:String) :<br />

Void<br />

setNewTextFormat(tf:<br />

TextFormat) : Void<br />

setTextFormat([begin<br />

In<strong>de</strong>x:Number],<br />

[endIn<strong>de</strong>x:Number],<br />

textFormat:TextForma<br />

t) : Void<br />

Renvoie les noms <strong>de</strong>s polices sur le système hôte <strong>du</strong><br />

lecteur sous forme <strong>de</strong> tableau.<br />

Renvoie un objet TextFormat contenant une copie <strong>de</strong><br />

l'objet TextFormat <strong>du</strong> champ texte.<br />

Renvoie un objet TextFormat pour un caractère, une<br />

plage <strong>de</strong> caractères ou l'ensemble d'un objet<br />

TextField.<br />

Supprime un objet écouteur précé<strong>de</strong>mment enregistré<br />

dans une occurrence <strong>de</strong> champ texte avec<br />

TextField.addListener().<br />

Supprime le champ texte.<br />

Remplace la sélection actuelle par le contenu <strong>du</strong><br />

paramètre newText.<br />

Remplace une plage <strong>de</strong> caractères, spécifiée par les<br />

paramètres beginIn<strong>de</strong>x et endIn<strong>de</strong>x dans le champ<br />

texte spécifié, par le contenu <strong>du</strong> paramètre newText.<br />

Définit le format par défaut <strong>du</strong> nouveau texte dans un<br />

champ texte.<br />

Applique la mise en forme <strong>du</strong> texte spécifié par le<br />

paramètre textFormat à une partie ou à l'ensemble <strong>du</strong><br />

texte dans un champ texte.

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

Saved successfully!

Ooh no, something went wrong!