flash on 2010-3-22

by hacker_9p8x8mco
♥1 | Line 12 | Modified 2010-03-22 06:49:23 | MIT License
play

ActionScript3 source code

/**
 * Copyright hacker_9p8x8mco ( http://wonderfl.net/user/hacker_9p8x8mco )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/hofY
 */

package {
    import flash.display.Sprite;
    import flash.display.Bitmap;
    import flash.display.BitmapData;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            var bmpdata:BitmapData;
            bmpdata = new BitmapData(stage.stageWidth/2,stage.stageHeight/2,false,0xff0000);
            addChild(new Bitmap(bmpdata));
        }
    }
}