ActionScript圆角方框



   var roundsquare:Sprite = new Sprite();
   roundsquare.graphics.lineStyle(1,0x232f3f,1);//边框颜色,size等
   roundsquare.graphics.beginFill(0xffffff,1);//中间颜色透明
   roundsquare.graphics.drawRoundRect(dst.x,dst.y+2,dst.width,dst.height ,round,round);

   roundsquare.graphics.endFill();
   this.addChild(roundsquare);
   roundsquare.visible = true;
   dst.mask = roundsquare;



你可能感兴趣的:(AS,ActionScript3.0,圆)