IME (System.IME)
659
CHINESE (IME.CHINESE property)
public static CHINESE : String
A string with the value
"CHINESE"
for use with
setConversionMode()
and
getConversionMode()
. This constant is used with simplified and traditional Chinese IMEs.
Availability:
ActionScript 1.0; Flash Player 8
Example
The following example sets the IME to
CHINESE
if the system has an Input Method Editor
(IME) installed (
System.capabilities.hasIME
).
if(System.capabilities.hasIME) {
trace(System.IME.getConversionMode());
System.IME.setConversionMode(System.IME.CHINESE);
trace(System.IME.getConversionMode());
}
See also
setConversionMode (IME.setConversionMode method)
,
getConversionMode
(IME.getConversionMode method)
doConversion (IME.doConversion method)
public static doConversion() : Boolean
Instructs the IME to select the first candidate for the current composition string.
Availability:
ActionScript 1.0; Flash Player 8
Returns
Boolean
- Returns
true
if the call is successful; otherwise
false
.
Example
The following example shows how to select the first candidate for the IME composition
string. If the user's system has IME, clicking in the text field selects the candidate.
var mc:MovieClip = this.createEmptyMovieClip("mc",
this.getNextHighestDepth());
mc.createTextField("txt", this.getNextHighestDepth(), 0, 0, 0, 0);
mc.txt.border = true;
mc.txt.background = true;
mc.txt.autoSize = "left";
mc.txt.text = "Set this text as the composition string and convert it.";
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...