User Guide

660 ActionScript classes
mc.onPress = function() {
if(System.capabilities.hasIME) {
Selection.setFocus(mc.txt);
System.IME.setCompositionString(mc.txt.text);
trace(System.IME.doConversion());
}
}
getConversionMode (IME.getConversionMode
method)
public static getConversionMode() : String
Indicates the conversion mode of the current IME.
Availability: ActionScript 1.0; Flash Player 8
Returns
String - The conversion mode. Possible values are IME mode string constants that indicate
the conversion mode:
ALPHANUMERIC_FULL
ALPHANUMERIC_HALF
CHINESE
JAPANESE_HIRAGANA
JAPANESE_KATAKANA_FULL
JAPANESE_KATAKANA_HALF
KOREAN
UNKNOWN
Example
The following example gets the IME if the system has an Input Method Editor (IME)
installed (
System.capabilities.hasIME).
var mode:String = System.IME.UNKNOWN;
if(System.capabilities.hasIME) {
mode = System.IME.getConversionMode();
}
trace(mode);