ActionScript圆角方框

来源:互联网 发布:oracle表索引优化 编辑:程序博客网 时间:2024/05/01 23:06


   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;


0 0