03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Parameters<br />

listener:Object - An object, with an onIMEComposition (readingString) method, that<br />

listens for a callback notification from the IME event h<strong>and</strong>lers. The reading string passed to<br />

this method is in the composition mode of the IME. For example, if the user enters text in<br />

Hiragana <strong>and</strong> then selects a Kanji c<strong>and</strong>idate, the reading string is the original Hiragana.<br />

Example<br />

The following example shows how to add a listener object to System.IME that outputs<br />

notification when a user sets the composition string by clicking in the text field.<br />

var IMEListener:Object = new Object();<br />

IMEListener.onIMEComposition = function(str:String) {<br />

trace(">> onIMEComposition: " + str);<br />

}<br />

System.IME.addListener(IMEListener);<br />

trace(System.IME.length);<br />

var mc:MovieClip = this.createEmptyMovieClip("mc",<br />

this.getNextHighestDepth());<br />

mc.createTextField("txt", this.getNextHighestDepth(), 0, 0, 0, 0);<br />

mc.txt.border = true;<br />

mc.txt.background = true;<br />

mc.txt.autoSize = "left";<br />

mc.txt.text = "Click this text to add a listener.";<br />

mc.onPress = function() {<br />

if(System.capabilities.hasIME) {<br />

Selection.setFocus(mc.txt);<br />

System.IME.setCompositionString(mc.txt.text);<br />

}<br />

}<br />

ALPHANUMERIC_FULL<br />

(IME.ALPHANUMERIC_FULL property)<br />

public static ALPHANUMERIC_FULL : String<br />

A string with the value "ALPHANUMERIC_FULL" for use with setConversionMode() <strong>and</strong><br />

getConversionMode(). This constant is used with all IMEs.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 8<br />

IME (System.IME) 667

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!