forked from: flash on 2010-3-13
forked from flash on 2010-3-13 (diff: 21)
ActionScript3 source code
/**
* Copyright LegoJoe ( http://wonderfl.net/user/LegoJoe )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/o1rh
*/
// forked from foo9's flash on 2010-3-13
package {
import flash.display.Sprite;
[SWF(backgroundColor="#cccccc")]
public class FlashTest extends Sprite {
private var console:Console;
public function FlashTest() {
console = new Console(465, 465);
addChild(console);
var b:Boolean;
console.print(b == true);
}
}
}
//****************************************************************************************************
import flash.text.TextField;
class Console extends TextField {
public function Console(w:Number=465, h:Number=465) {
super.width = w;
super.height = h;
}
public function print(text:*):void { this.text = this.text + String(text) + "\n"; }
}
