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.

Exemple<br />

L'exemple suivant définit l'IME sur ALPHANUMERIC_FULL si le système est doté d'un IME<br />

(Input Method Editor) (System.capabilities.hasIME).<br />

if(System.capabilities.hasIME) {<br />

trace(System.IME.getConversionMo<strong>de</strong>());<br />

}<br />

System.IME.setConversionMo<strong>de</strong>(System.IME.ALPHANUMERIC_FULL);<br />

trace(System.IME.getConversionMo<strong>de</strong>());<br />

Voir également<br />

setConversionMo<strong>de</strong> (métho<strong>de</strong> IME.setConversionMo<strong>de</strong>), getConversionMo<strong>de</strong><br />

(métho<strong>de</strong> IME.getConversionMo<strong>de</strong>), hasIME (propriété capabilities.hasIME)<br />

ALPHANUMERIC_HALF (propriété<br />

IME.ALPHANUMERIC_HALF)<br />

statique publique ALPHANUMERIC_HALF : String<br />

Une chaîne ayant la valeur "ALPHANUMERIC_HALF" à utiliser avec setConversionMo<strong>de</strong>() et<br />

getConversionMo<strong>de</strong>(). Cette constante est utilisée sur tous les IME.<br />

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

Exemple<br />

L'exemple suivant définit l'IME sur ALPHANUMERIC_HALF si le système est doté d'un IME<br />

(Input Method Editor) (System.capabilities.hasIME).<br />

if(System.capabilities.hasIME) {<br />

trace(System.IME.getConversionMo<strong>de</strong>());<br />

}<br />

System.IME.setConversionMo<strong>de</strong>(System.IME.ALPHANUMERIC_HALF);<br />

trace(System.IME.getConversionMo<strong>de</strong>());<br />

Voir également<br />

setConversionMo<strong>de</strong> (métho<strong>de</strong> IME.setConversionMo<strong>de</strong>), getConversionMo<strong>de</strong><br />

(métho<strong>de</strong> IME.getConversionMo<strong>de</strong>)<br />

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

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

Saved successfully!

Ooh no, something went wrong!