テキストフィールド
♥0 |
Line 15 |
Modified 2010-12-13 12:32:59 |
MIT License
archived:2017-03-20 02:06:15
ActionScript3 source code
/**
* Copyright h_sakurai ( http://wonderfl.net/user/h_sakurai )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/21ob
*/
package {
import flash.text.TextField;
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
var tf:TextField = new TextField();// テキストフィールド(文字列を表示するもの)を作成する
tf.text = "hello world";// テキスト内容を設定する
tf.x = 100;// x座標を100にする
tf.y = 100;// y座標を100にする
tf.width = 200;// 幅を指定する
tf.height = 200;// 高さを指定する
addChild(tf);// 画面にテキストフィールドを張り付ける
}
}
}