flash on 2010-6-9
http://gihyo.jp/design/feature/01/wonderfl/0001?page=2
http://livedocs.adobe.com/flex/3_jp/langref/index.html
♥0 |
Line 11 |
Modified 2010-06-10 10:16:14 |
MIT License
archived:2017-03-09 20:07:51
ActionScript3 source code
/**
* Copyright xoxo_akira ( http://wonderfl.net/user/xoxo_akira )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/89KT
*/
// http://gihyo.jp/design/feature/01/wonderfl/0001?page=2
// http://livedocs.adobe.com/flex/3_jp/langref/index.html
package {
import flash.display.Sprite;
/* ビジュアル表示の構築コアクラス.
表示リスト基本的要素=グラフィック表示&子を持てる表示リストノード*/
import flash.text.TextField;
/* テキストフィールド、テキストのフォーマットとメトリック、スタイルシート、およびレイアウトを扱うためのクラス
Flash Player 8 以降では、flash.text.TextFormat クラスと flash.text.TextRenderer クラスにより、高度なアンチエイリアス機能を使用できる.
テキストの表示と入力用の表示オブジェクトを作成*/
public class HelloWorld extends Sprite {
// クラス名= HelloWorld クラスの継承元クラス=Sprite
public function HelloWorld() {
var tf :TextField = new TextField;
// 変数定義
tf.text = "Hello, world!";
addChild( tf );
// コンテナ内の全既存子オブジェクトの前面にオブジェクト追加(うっ...意味分からん)
}
}
}