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.

La valeur _accProps doit être un objet. Ceci signifie que si aucun objet _accProps n'existe,<br />

vous <strong>de</strong>vez en créer un, avant <strong>de</strong> pouvoir affecter <strong>de</strong>s indices aux propriétés <strong>de</strong> l'objet<br />

_accProps.<br />

if (_accProps == un<strong>de</strong>fined)<br />

{<br />

_accProps = new Object();<br />

}<br />

_accProps.name = "My movie";<br />

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

Paramètres<br />

propertyName:Boolean or String - Nom <strong>de</strong> propriété d'accessibilité (consultez la<br />

<strong>de</strong>scription suivante pour connaître les noms vali<strong>de</strong>s). instanceName<br />

instanceName:String - Nom d'occurrence affecté à une occurrence <strong>de</strong> clip, un bouton, un<br />

champ <strong>de</strong> texte dynamique ou un champ <strong>de</strong> texte <strong>de</strong> saisie. Pour faire référence à l'objet<br />

_accProps représentant le document Flash, omettez le paramètre instanceName.<br />

Exemple<br />

Si vous modifiez une image et souhaitez mettre à jour sa <strong>de</strong>scription d'accessibilité, vous<br />

pouvez utiliser le co<strong>de</strong> <strong>ActionScript</strong> suivant :<br />

my_mc.gotoAndStop(2);<br />

if (my_mc._accProps == un<strong>de</strong>fined ) {<br />

my_mc._accProps = new Object();<br />

}<br />

my_mc._accProps.name = "Photo of Mount Rushmore";<br />

Accessibility.updateProperties();<br />

Voir également<br />

isActive (métho<strong>de</strong> Accessibility.isActive), updateProperties (métho<strong>de</strong><br />

Accessibility.updateProperties), hasAccessibility (propriété<br />

capabilities.hasAccessibility)<br />

Propriétés globales 121

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

Saved successfully!

Ooh no, something went wrong!