00001
00002
00003
00004
00005
00006
00007
00008
00009 import mx.xpath.XPathAPI;
00010 import amg.*;
00011
00012
00013 class amg.DialogBox extends MovieClip {
00014
00015 private var txtDialogOut:TextField;
00016 private var dialogOutFmt:TextFormat;
00017
00018
00019
00020 public function DialogBox() {
00021 this.createTextField("txtDialogOut", 3,25,30, 400, 190);
00022 this.txtDialogOut.multiline = true;
00023 this.txtDialogOut.wordWrap = true;
00024 this.txtDialogOut.embedFonts = false;
00025 this.txtDialogOut.selectable = false;
00026 this.dialogOutFmt = new TextFormat();
00027 this.dialogOutFmt.color = 0x333333;
00028 this.dialogOutFmt.font = "Arial";
00029 this.dialogOutFmt.size = 14;
00030
00031
00032 }
00033
00034 public function setText(newText:String):Void {
00035 this.txtDialogOut.text = newText;
00036 this.txtDialogOut.setTextFormat(this.dialogOutFmt);
00037 }
00038
00039
00040
00041
00042 }