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-30

Get Adobe Flash player
by Youth-K 30 Jun 2012
    Embed
/**
 * Copyright Youth-K ( http://wonderfl.net/user/Youth-K )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/jocJ
 */

package {
    import flash.display.AVM1Movie;
    import flash.display.Sprite;
    import flash.display.Bitmap;
    import flash.display.BitmapData;
    public class FlashTest extends Sprite {
        private var sp:Sprite;
        private var btd:BitmapData;
        private var btm:Bitmap;
        public function FlashTest() {
            sp = new Sprite();
            sp.graphics.beginFill(0x0000);
            sp.graphics.drawCircle(10,10,10);
            sp.graphics.endFill();
            btd = new BitmapData(20,20,false);
            btd.draw(sp);
            btm = new Bitmap(btd);
            this.addChild(btm);
        }
    }
}