如何在AS3中填充任何颜色的矩形?

时间:2015-09-07 10:58:56

标签: actionscript-3 flash

我正在绘制一个矩形以在进度条中移动我的scrubBar,它工作正常,现在我需要用一些颜色填充矩形?

 private function startScrubbingOUT(_arg1:MouseEvent){
            this.cueCard.stage.addEventListener(MouseEvent.MOUSE_UP, this.stopScrubbingOUT);
            this.cueCard.stage.addEventListener(MouseEvent.MOUSE_MOVE, this.scrubBarIsMovingOUT);
            this.scrubbing = true;
            var _local2:Rectangle = new Rectangle(this.controls_mc.progressBar_mc.x, this.controls_mc.scrub_outpoint_mc.y, this.controls_mc.progressBar_mc.width, 0);
            this.controls_mc.scrub_outpoint_mc.startDrag(false, _local2);

        }

我在这里提到了Rectangle类Rectangle Class

但我找不到任何填充Rectangle的属性,有助于弄清楚这个

0 个答案:

没有答案