Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > IME (System.IME) > 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
Boolean - Returns true if the call is successful; otherwise false.
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.";
mc.onPress = function() {
if(System.capabilities.hasIME) {
Selection.setFocus(mc.txt);
System.IME.setCompositionString(mc.txt.text);
trace(System.IME.doConversion());
}
}
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/00001735.html