Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > IME (System.IME) > 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
enabled:Boolean - Set to true to enable the system IME, false to disable it.
Boolean - If the attempt to enable the system IME is successful, returns true; otherwise false.
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);
}
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00001746.html