Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > IME (System.IME) | |||
Object
|
+-System.IME
public class IME
extends Object
The IME class lets you directly manipulate the operating system's input method editor (IME) in the Flash Player application that is running on a client computer. You can determine whether an IME is installed, whether or not the IME is enabled, and which IME is enabled. You can disable or enable the IME in the Flash Player application, and you can perform other limited functions, depending on the operating system.
Input method editors let users type non-ASCII text characters in Asian languages such as Chinese, Japanese, and Korean. For more information on IMEs, see the operating system documentation for the platform for which you are developing applications. Some additional resources for information about input methods are listed here:
On the Macintosh, calls to the IME application programming interface (API) fail if you do not have the IME enabled. Once you manually enable the IME, subsequent calls work as expected. For example, if you are using Japanese IME on your system, it must be enabled and in one of four possible modes (Hiragana, Full-width Katakana, Full-width Alphanumeric, Half-width Katakana) before this API is called.
The following table shows the platform coverage of this class:
|
Capability |
Windows |
Macintosh OSX |
Macintosh Classic |
Linux/Solaris XIM |
|---|---|---|---|---|
|
Determine whether the IME is installed |
Yes |
Yes |
Yes |
Yes |
|
Set IME on or off |
Yes |
Yes |
Yes *** |
Yes |
|
Find out whether IME is on or off |
Yes |
Yes |
Yes |
Yes |
|
Set IME conversion mode |
Yes |
Yes ** |
No |
Yes |
|
Get IME conversion mode |
Yes |
Yes ** |
No |
Yes |
|
Send IME the string to be converted |
Yes * |
No |
No |
Yes |
|
Get from IME the original string before conversion |
Yes * |
No |
No |
Yes |
|
Send request to convert to IME |
Yes * |
No |
No |
Yes |
* Not all Windows IMEs support all of these operations. So far the only IME that supports them all is the Japanese IME. Every IME differs in its support of the OS calls.
** On Macintosh these methods are supported only for Japanese, and they are not supported for third-party IMEs.
*** One of the Japanese modes (Hiragana, Full & Half-width Katakana, Full-width alphanumeric) must be enabled before using this API.
Availability: ActionScript 1.0; Flash Player 8
|
Modifiers |
Property |
Description |
|---|---|---|
|
|
A string with the value |
|
|
|
A string with the value |
|
|
|
A string with the value |
|
|
|
A string with the value |
|
|
|
A string with the value |
|
|
|
A string with the value |
|
|
|
A string with the value |
|
|
|
A string with the value |
Properties inherited from class Object constructor (Object.constructor property), __proto__ (Object.__proto__ property), prototype (Object.prototype property), __resolve (Object.__resolve property)
|
Event |
Description |
|---|---|
|
onIMEComposition |
Notified when the IME composition string is being set. |
|
Modifiers |
Signature |
Description |
|---|---|---|
|
|
addListener |
Registers an object to receive notification when an IME event handler is invoked by the |
|
|
doConversion |
Instructs the IME to select the first candidate for the current composition string. |
|
|
Indicates the conversion mode of the current IME. |
|
|
|
getEnabled |
Indicates whether the system IME is enabled. |
|
|
removeListener |
Removes a listener object that was previously registered to an |
|
|
setCompositionString |
Sets the IME composition string. |
|
|
setConversionMode |
Sets the conversion mode of the current IME. |
|
|
setEnabled |
Enables or disables the system IME. |
Methods inherited from class Object
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/00001730.html