In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

e4x

Get Adobe Flash player
by 9re 13 Apr 2010
    Embed
/**
 * 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);
        }
    }
}