Simple Console
♥0 |
Line 21 |
Modified 2010-10-13 12:30:10 |
MIT License
archived:2017-03-20 19:25:51
ActionScript3 source code
/**
* Copyright rfkrocktk ( http://wonderfl.net/user/rfkrocktk )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/pwQx
*/
package {
import flash.text.TextFormat;
import flash.text.TextField;
import flash.display.Sprite;
public class FlashTest extends Sprite {
private var textfield:TextField;
public function FlashTest() {
this.textfield = new TextField();
this.textfield.x = this.textfield.y = 10;
this.textfield.width = this.stage.stageWidth;
this.textfield.height = this.stage.stageHeight;
this.textfield.defaultTextFormat = new TextFormat("Courier New");
this.addChild(this.textfield);
output("Console Application");
output("---------------------------");
}
public function output(message:String):void {
this.textfield.appendText(message + "\n");
}
}
}