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
- The conversion mode. Possible values are IME mode string constants that indicate
String
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);
660
ActionScript classes
).
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?