osx TextField input bug

by cellfusion
TextField の入力バグ検証
osx だと日本語入力できません
Adobe はさじを投げた様子
ブラウザベンダーも両方爆発しろよ
♥1 | Line 19 | Modified 2009-08-21 23:03:48 | MIT License
play

ActionScript3 source code

/**
 * Copyright cellfusion ( http://wonderfl.net/user/cellfusion )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/krz1
 */

package {
    import flash.display.Sprite;
    import flash.text.*;
    /**
     * TextField の入力バグ検証
     * osx だと日本語入力できません
     * Adobe はさじを投げた様子
     * ブラウザベンダーも両方爆発しろよ
     */
    public class FlashTest extends Sprite {
        private var _tf:TextField;        

        public function FlashTest() {
            // write as3 code here..
            _tf = new TextField();
            _tf.width = 400;
            _tf.height = 20;
            
            _tf.border = true;
            _tf.text = 'ここに入力';
            _tf.type = TextFieldType.INPUT;
            
            var tf:TextFormat = _tf.defaultTextFormat;
            //tf.font = '_等幅';
            tf.color = 0x000000;
            
            _tf.defaultTextFormat = tf;
            
            addChild(_tf);
        }
    }
}