flash on 2011-5-12

by nijitaro
♥0 | Line 14 | Modified 2011-05-12 15:56:15 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.Sprite;
    import flash.display.Shape;
    public class Main extends Sprite {
        public function Main() {
            var square:Shape = new Shape();
            square.graphics.beginFill(0xff0000, 0.5);
            square.graphics.drawRect(0,0,100,100);
            square.graphics.endFill();
            square.x = 100;
            addChild(square);
        }
    }
}