test_10
Shapeクラスの使用
/**
* Copyright ekoruru ( http://wonderfl.net/user/ekoruru )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/xjhr
*/
package
{
import flash.display.Graphics;
import flash.media.Sound;
import flash.display.Sprite;
import flash.display.Shape;
public class main extends Sprite
{
public function main()
{
var shape:Shape = new Shape();
var s:Graphics = shape.graphics;
s.beginFill(0xed1a3d);
s.drawCircle(0,0,40);
s.endFill();
addChild(shape);
shape.x = 200;
shape.y = 100;
shape.alpha = 0.5;
}
}
}