How to fill a rectangle with any color in AS3?

守給你的承諾、 提交于 2019-12-25 00:53:22

问题


Am drawing a rectangle to move my scrubBar in a progressbar, it's working fine, now i need to fill the rectangle with some colors ?

 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);

        }

i had reffered Rectangle class here Rectangle Class

but i can't find any attribute to fill the Rectangle, help to figureout this

来源:https://stackoverflow.com/questions/32437018/how-to-fill-a-rectangle-with-any-color-in-as3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!