« ActionScript3.0本 | メイン | WiiリモコンでFlash »

入力できるTextFieldのautosizeをtrueにしたらWindowsでテキストが隠れる

del.icio.us it!   hatena bookmark

actionscript2ネタ

typeをinputにしたTextFieldのautosizeをtureにした場合、Windowsのみ右矢印キーを押し続けると、左側が隠れてしまう。

で解決策としてはonEnterFrameで常に +10し続ける。
美しくない解決だ。。。

Macじゃなんともないのにな


さんぷる



そーす


text_txt1 = createTextField("text1",getNextHighestDepth(),0,0,0,0);
text_txt1.type = "input";
text_txt1.text = "Windowsでかくれちゃう";
text_txt1.border = true;
text_txt1.autoSize = true;
text_txt1.multiline = true;
text_txt1._x = 10;
text_txt1._y = 10

text_txt2 = this.createTextField("text",this.getNextHighestDepth(),0,0,0,0);
text_txt2.type = "input";
text_txt2.text = "Windowsでもかくれない";
text_txt2.border = true;
text_txt2.autoSize = true;
text_txt2.multiline = true;
text_txt2._x = 10;
text_txt2._y = 50;

onEnterFrame = function () {
text_txt2._width =+ 10;
}




トラックバック

このエントリーのトラックバックURL:
http://un-q.net/mt-tb.cgi/93

コメントを投稿

crossreview