forked from: TestBase
forked from TestBase (diff: 3)
ActionScript3 source code
/**
* Copyright toburau ( http://wonderfl.net/user/toburau )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/cUmW
*/
// forked from toburau's TestBase
// forked from toburau's flash on 2010-1-21
package {
import flash.display.Sprite;
import flash.text.TextField;
public class Test extends Sprite {
public function Test() {
var n:Number = Math.random();
Print(n.toString());
}
private var TextY:int = 0;
public function Print(str:String):void {
var tf:TextField = new TextField;
tf.text = str;
tf.y = TextY;
TextY += 12;
addChild(tf);
}
}
}
