Adobe Systems, Inc.

DialogBox.as

Go to the documentation of this file.
00001 /******************************************************************
00002 ** Copyright 2005-2006 Adobe Systems Incorporated
00003 ** Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
00004 ** or a copy at http://opensource.adobe.com/licenses.html)
00005 **
00006 ** DialogBox Class 
00007 ********************************************************************/
00008 
00009 import mx.xpath.XPathAPI;
00010 import amg.*;
00011 
00012 //implements ISmartLoader interface insuring that the smartLoader callback method is present
00013 class amg.DialogBox extends MovieClip {
00014         //member properties
00015         private var txtDialogOut:TextField;
00016         private var dialogOutFmt:TextFormat;
00017         
00018         
00019         //class constructor
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 }

Copyright © 2006 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.