Flash でテキストを表示する練習

こんなの。& クラスのメモ

/** * 日記の記事を表示するクラス *  */import com.layer13.diary.*;class Article extends MovieClip {	public static var linkageId:String = "com.layer13.diary.Article";	public static var classRef:Function = Article;	private var textfieldName:String = "article_text";	/** 記事を表示するテキストフィールド名 */	private var textfield:TextField;	/** 記事を表示するテキストフィールドへの参照 */	private var text:String;	/** 日記のテキスト */		private var textfieldDepth:Number = 100;	private var bgBorderWidth:Number = 10;	/**	 * コンストラクタ	 * 	 */	public function Article() {		super();	}		/**	 * htmlText を入力する	 * 	 * @param text 表示したいテキスト	 * 	 * @return テキストがちゃんと表示されれば true を返す	 */	public function seHtmltText(text:String):Boolean {		this.text = text;				var tf:TextField = this.getTextField();		if(tf) {			tf.htmlText = text;			return true;		} else {			return false;		}	}			/**	 * テキストフィールドを生成する	 * 	 * @return テキストフィールドを返す	 */	private function getTextField():TextField {		if( this.textfield == undefined ) {			this.createTextField(this.textfieldName, this.textfieldDepth, this.bgBorderWidth, this.bgBorderWidth, 500,100 );			this.textfield = this[this.textfieldName];			initTextField();		}		return this.textfield;	}		/**	 * テキストフィールドを初期化する	 * 	 	 */	private function initTextField():Void {		this.textfield.multiline = true;	//この行は、<br>で改行するのに必要		this.textfield.wordWrap  = true;	//この行は、<br>で改行するのに必要		this.textfield.autoSize = true;		this.textfield.background = true;		this.textfield.backgroundColor = 0xffffff;		this.textfield.border = true;		this.textfield.borderColor = 0xCCCCCC;		this.textfield.html = true;				// TextFormat を styleSheet より先に適用しないと、行間が開かない。		this.textfield.setNewTextFormat( this.getTextFormat() );		this.textfield.styleSheet = this.getStyleSheet();	}		/**	 * テキストフォーマットを生成する	 * 	 * @return テキストフォーマットを返す	 	 */	private function getTextFormat():TextFormat {		var fmt:TextFormat = new TextFormat();		fmt.leading = 5;		fmt.leftMargin = 10;		fmt.rightMargin = 10;				return fmt	}		/**	 * スタイルシートを生成する	 * 	 * @return スタイルシートを返す	 	 */	private function getStyleSheet():TextField.StyleSheet {		var styles:TextField.StyleSheet = new TextField.StyleSheet();		styles.setStyle("html", 		  { fontSize: '14px',			fontFamily: "Tahoma, sans-serif"		  }		);		styles.setStyle("date", 		  { fontSize: '12px',		  display: "block"		  }		);				styles.setStyle("title", 		  { fontSize: '16px',		   fontWeight: "bold",		  display: "block"				  }		);				styles.setStyle( "img",			{display: "block"			}		);				styles.setStyle("p", 		  {display: "block"		  }		);				return styles;	}}