📄 buttondisplaystate.as
字号:
package crlclr.ui{
import flash.display.Shape;
import flash.geom.Rectangle;
public class ButtonDisplayState extends Shape {
private var bgColor:uint;
private var bound:Rectangle;
public function ButtonDisplayState(bgColor:uint, rect:Rectangle) {
this.bgColor = bgColor;
this.bound=rect;
draw();
}
private function draw():void {
graphics.beginFill(bgColor);
graphics.drawRoundRect(bound.x,bound.y,bound.width,bound.height,10);
graphics.endFill();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -