e4x
/**
* Copyright 9re ( http://wonderfl.net/user/9re )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/vX8Y
*/
package {
import flash.display.Sprite;
import flash.text.TextField;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
var tf:TextField = new TextField;
tf.text = <>
{
(function():Date {
return new Date;
})()
}
</> + '';
tf.width = tf.textWidth + 4;
tf.height = tf.textHeight + 4;
addChild(tf);
}
}
}