IME (System.IME)
657
Parameters
listener
:Object
- An object, with an
onIMEComposition
(readingString) method, that
listens for a callback notification from the IME event handlers. The reading string passed to
this method is in the composition mode of the IME. For example, if the user enters text in
Hiragana and then selects a Kanji candidate, the reading string is the original Hiragana.
Example
The following example shows how to add a listener object to
System.IME
that outputs
notification when a user sets the composition string by clicking in the text field.
var IMEListener:Object = new Object();
IMEListener.onIMEComposition = function(str:String) {
trace(">> onIMEComposition: " + str);
}
System.IME.addListener(IMEListener);
trace(System.IME.length);
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 = "Click this text to add a listener.";
mc.onPress = function() {
if(System.capabilities.hasIME) {
Selection.setFocus(mc.txt);
System.IME.setCompositionString(mc.txt.text);
}
}
ALPHANUMERIC_FULL
(IME.ALPHANUMERIC_FULL property)
public static ALPHANUMERIC_FULL : String
A string with the value
"ALPHANUMERIC_FULL"
for use with
setConversionMode()
and
getConversionMode()
. This constant is used with all IMEs.
Availability:
ActionScript 1.0; Flash Player 8
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...