ActionScript 2.0 Language Reference |
|
|
|
| ActionScript classes > IME (System.IME) > setConversionMode (IME.setConversionMode method) | |||
public static setConversionMode(mode:String) : Boolean
Sets the conversion mode of the current IME.
Availability: ActionScript 1.0; Flash Player 8
mode:String - The conversion mode. Possible values are the IME mode string constants:
ALPHANUMERIC_FULLALPHANUMERIC_HALFCHINESEJAPANESE_HIRAGANAJAPANESE_KATAKANA_FULLJAPANESE_KATAKANA_HALFKOREANBoolean - Returns true if the conversion mode was successfully set; otherwise false.
The following example gets the IME if the system has an Input Method Editor (IME) installed ( System.capabilities.hasIME) and sets the variable mode to that value.
var mode:String = System.IME.UNKNOWN;
if(System.capabilities.hasIME) {
mode = System.IME.getConversionMode();
}
System.IME.setConversionMode(mode);
trace(System.IME.getConversionMode());
ALPHANUMERIC_FULL (IME.ALPHANUMERIC_FULL property), ALPHANUMERIC_HALF (IME.ALPHANUMERIC_HALF property), CHINESE (IME.CHINESE property), JAPANESE_HIRAGANA (IME.JAPANESE_HIRAGANA property), JAPANESE_KATAKANA_FULL (IME.JAPANESE_KATAKANA_FULL property), JAPANESE_KATAKANA_HALF (IME.JAPANESE_KATAKANA_HALF property), KOREAN (IME.KOREAN property)
|
|
|
|