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.

Key.addListener(keyListener);<br />

La métho<strong>de</strong> MovieClip.getNextHighestDepth() utilisée dans cet exemple requiert Flash<br />

Player 7 ou version ultérieure. Si votre fichier SWF comporte un composant <strong>de</strong> la version 2,<br />

utilisez la classe DepthManager <strong>de</strong>s composants <strong>de</strong> la version 2 au lieu <strong>de</strong> la métho<strong>de</strong><br />

MovieClip.getNextHighestDepth().<br />

backgroundColor (propriété<br />

TextField.backgroundColor)<br />

public backgroundColor : Number<br />

Couleur <strong>de</strong> l'arrière-plan <strong>du</strong> champ texte. La valeur par défaut est 0xFFFFFF (blanc). Cette<br />

propriété peut être récupérée ou définie, même s'il n'y a actuellement aucun arrière-plan, mais<br />

la couleur n'est visible que si le champ texte a une bor<strong>du</strong>re.<br />

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

Exemple<br />

Consultez l'exemple relatif à TextField.background.<br />

Voir également<br />

background (propriété TextField.background)<br />

bor<strong>de</strong>r (propriété TextField.bor<strong>de</strong>r)<br />

public bor<strong>de</strong>r : Boolean<br />

Spécifie si le champ texte comporte une bor<strong>du</strong>re. Si true, le champ texte comporte une<br />

bor<strong>du</strong>re. Si false, le champ texte ne comporte pas <strong>de</strong> bor<strong>du</strong>re.<br />

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

Exemple<br />

L'exemple suivant crée un champ texte appelé my_txt, définit la propriété bor<strong>de</strong>r sur true et<br />

affiche <strong>du</strong> texte dans ce champ.<br />

this.createTextField("my_txt", this.getNextHighestDepth(), 10, 10, 320,<br />

240);<br />

my_txt.bor<strong>de</strong>r = true;<br />

my_txt.text = "Lorum ipsum";<br />

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

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

Saved successfully!

Ooh no, something went wrong!