■ IMEを操作するには
//メインタイムラインのフレームアクション
cntr =
0;
modes =
[System.IME.ALPHANUMERIC_HALF,
System.IME.ALPHANUMERIC_FULL,
System.IME.JAPANESE_HIRAGANA,
System.IME.JAPANESE_KATAKANA_FULL,
System.IME.JAPANESE_KATAKANA_HALF];
mode_btn.onRelease =
function() {
System.IME.setConversionMode(modes[cntr]);
cntr = (cntr == modes.length
- 1) ? 0 : cntr + 1;
mode_txt.text = System.IME.getConversionMode();
};
conv_btn.onRelease =
function() {
Selection.setFocus(input_txt);
Selection.setSelection(input_txt.length,
input_txt.length);
System.IME.setCompositionString(conv_txt.text);
System.IME.doConversion();
};

