User Guide

668 ActionScript classes
setEnabled (IME.setEnabled method)
public static setEnabled(enabled:Boolean) : Boolean
Enables or disables the system IME. An enabled IME performs multibyte input; a disabled
IME performs alphanumeric input.
Availability: ActionScript 1.0; Flash Player 8
Parameters
enabled:Boolean - Set to true to enable the system IME, false to disable it.
Returns
Boolean - If the attempt to enable the system IME is successful, returns true; otherwise
false.
Example
The following example checks to see whether IME is enabled by calling the
isEnabled()
method and then changes its enabled state to the opposite by calling the
setEnabled()
method.
if(System.capabilities.hasIME) {
var isImeEnabled:Boolean = System.IME.getEnabled();
trace(isImeEnabled);
if(isImeEnabled) {
System.IME.setEnabled(false);
}
else {
System.IME.setEnabled(true);
}
var isImeEnabled:Boolean = System.IME.getEnabled();
trace(isImeEnabled);
}
UNKNOWN (IME.UNKNOWN property)
public static UNKNOWN : String
A string with the value "UNKNOWN" for use with getConversionMode(). This constant is used
with all IMEs.
Availability: ActionScript 1.0; Flash Player 8