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 2012-6-13

Get Adobe Flash player
by araxomed 12 Jun 2012
/**
 * Copyright araxomed ( http://wonderfl.net/user/araxomed )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/vjfS
 */

package {
    import flash.text.TextField;
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            var spr:Sprite = new Sprite();
            spr.graphics.beginFill(0xBB0000);
            spr.graphics.drawRect(10, 10, 100, 70);
            this.addChild(spr);
            var tx:TextField = new TextField();
            tx.x = 10;
            tx.y = 90;
            tx.text = 'Hello world!';
            this.addChild(tx);
        }
    }
}