forked from: 教材:矩形(四角)を描こう!
forked from 教材:矩形(四角)を描こう! (diff: 1)
ActionScript3 source code
/**
* Copyright say ( http://wonderfl.net/user/say )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/qJzi
*/
// forked from ProjectNya's 教材:矩形(四角)を描こう!
package {
import flash.display.Sprite;
import flash.display.Shape;
public class Main extends Sprite {
private var shape:Shape;
private static var color:uint = 0x000000;
public function Main() {
init();
}
private function init():void {
shape = new Shape();
addChild(shape);
shape.x = 232;
shape.y = 232;
shape.graphics.beginFill(color);
shape.graphics.drawRect(-120, -90, 240, 180);
shape.graphics.endFill();
}
}
}