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

flash on 2009-8-21

Get Adobe Flash player
by daveruiz 21 Aug 2009
    Embed
/**
 * Copyright daveruiz ( http://wonderfl.net/user/daveruiz )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/zoQP
 */

package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFieldAutoSize;
    
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            var tf:TextField = new TextField();
            
            tf.text = "Testing... Cool!";
            tf.autoSize = TextFieldAutoSize.CENTER;
            tf.x = stage.stageWidth / 2;
            tf.y = stage.stageHeight / 2;
            
            addChild(tf);
            
        }
    }
}