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.

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

Voir également<br />

_soundbuftime, propriété<br />

tabEnabled (propriété Button.tabEnabled)<br />

public tabEnabled : Boolean<br />

Spécifie si my_btn est inclus dans l'ordre <strong>de</strong> tabulation automatique. La valeur par défaut est<br />

un<strong>de</strong>fined.<br />

Si la propriété tabEnabled est définie sur un<strong>de</strong>fined ou true, l'objet est inclus dans l'ordre<br />

<strong>de</strong> tabulation automatique. Si la propriété tabIn<strong>de</strong>x est également définie sur une valeur,<br />

l'objet est également inclus dans l'ordre <strong>de</strong> tabulation personnalisé. Si la propriété<br />

tabEnabled est définie sur false, l'objet n'est pas inclus dans l'ordre <strong>de</strong> tabulation<br />

automatique ou personnalisé, même si la propriété tabIn<strong>de</strong>x est définie.<br />

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

Exemple<br />

Le co<strong>de</strong> <strong>ActionScript</strong> suivant est utilisé pour définir la propriété tabEnabled sur false pour<br />

l'un <strong>de</strong>s quatre boutons. Cependant, les quatre boutons (one_btn, two_btn, three_btn, et<br />

four_btn) sont placés dans un ordre <strong>de</strong> tabulation personnalisé à l'ai<strong>de</strong> <strong>de</strong> tabIn<strong>de</strong>x. Bien<br />

que la propriété tabIn<strong>de</strong>x soit définie pour le bouton three_btn, ce <strong>de</strong>rnier n'est pas inclus<br />

dans un ordre <strong>de</strong> tabulation personnalisé ou automatique car la propriété tabEnabled est<br />

définie sur false pour cette occurrence. Pour définir l'ordre <strong>de</strong> tabulation <strong>de</strong>s quatre boutons,<br />

ajoutez le co<strong>de</strong> <strong>ActionScript</strong> suivant à l'image 1 <strong>du</strong> scénario :<br />

three_btn.tabEnabled = false;<br />

two_btn.tabIn<strong>de</strong>x = 1;<br />

four_btn.tabIn<strong>de</strong>x = 2;<br />

three_btn.tabIn<strong>de</strong>x = 3;<br />

one_btn.tabIn<strong>de</strong>x = 4;<br />

Veillez à désactiver les raccourcis clavier lorsque vous testez le fichier SWF. Pour ce faire, il<br />

vous suffit <strong>de</strong> pointer sur Contrôle > Désactiver les raccourcis clavier dans l'environnement <strong>de</strong><br />

test.<br />

Voir également<br />

tabIn<strong>de</strong>x (propriété Button.tabIn<strong>de</strong>x), tabEnabled (propriété<br />

MovieClip.tabEnabled), tabEnabled (propriété TextField.tabEnabled)<br />

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

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

Saved successfully!

Ooh no, something went wrong!