In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

osx TextField input bug

TextField の入力バグ検証
osx だと日本語入力できません
Adobe はさじを投げた様子
ブラウザベンダーも両方爆発しろよ
Get Adobe Flash player
by cellfusion 21 Aug 2009

    Talk

    keno42 at 21 Aug 2009 19:14
    adobeとapple爆発しろ!
    paq at 22 Aug 2009 07:06
    そんな問題があったのか、注意しなければ。
    Embed
/**
 * 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);
        }
    }
}