package { import flash.display.MovieClip; import flash.text.TextField; import flash.text.TextFormat; //[SWF(width="480", height="360", backgroundColor="#ffffff", frameRate="31")] public class TFDebug extends MovieClip { private var txtEcho:TextField; private function init():void { txtEcho = new TextField(); txtEcho.width = stage.stageWidth; txtEcho.height = stage.stageHeight; //txtEcho.background = true; //txtEcho.backgroundColor = 0x000080; //txtEcho.textColor = 0xC0C0C0; //0xFFFF00; txtEcho.wordWrap =true; var format:TextFormat = new TextFormat(); format.font = "Fixedsys"; format.size = 12; txtEcho.defaultTextFormat = format; addChild(txtEcho); } private function echo(s:String):void { txtEcho.appendText(s+"\r\n"); } public function TFDebug() { init() // echo(this.toString()) } } }