var sp:Sprite=new Sprite();
var graphics:Graphics=new Graphics();
graphics.save();
graphics.alpha(0.5);
graphics.drawRect(0,0,200,100,"#FF0000");
graphics.restore();
sp.graphics=graphics;
Laya.stage.addChild(sp);
实现graphics填充透明,请先对graphics进行save(),然后设置填充透明度值,其次绘制矢量图形,最后执行下restore()方法即可