03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

}<br />

}<br />

setConversionMode (IME.setConversionMode<br />

method)<br />

public static setConversionMode(mode:String) : Boolean<br />

Sets the conversion mode of the current IME.<br />

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

Parameters<br />

mode:String - The conversion mode. Possible values are the IME mode string constants:<br />

■ ALPHANUMERIC_FULL<br />

■ ALPHANUMERIC_HALF<br />

■ CHINESE<br />

■ JAPANESE_HIRAGANA<br />

■ JAPANESE_KATAKANA_FULL<br />

■ JAPANESE_KATAKANA_HALF<br />

■ KOREAN<br />

Returns<br />

Boolean - Returns true if the conversion mode was successfully set; otherwise false.<br />

Example<br />

The following example gets the IME if the system has an Input Method Editor (IME)<br />

installed ( System.capabilities.hasIME) <strong>and</strong> sets the variable mode to that value.<br />

var mode:String = System.IME.UNKNOWN;<br />

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

mode = System.IME.getConversionMode();<br />

}<br />

System.IME.setConversionMode(mode);<br />

trace(System.IME.getConversionMode());<br />

IME (System.IME) 677

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

Saved successfully!

Ooh no, something went wrong!