easeljs图形按钮闪烁;
var button = new createjs.Container(); //定义按钮
var tid = this.tid;
var reck2 = new createjs.Shape();
reck2.alpha = 0.6;
reck2.graphics.beginFill("#0000FF") //添加按钮颜色
reck2.graphics.drawRoundRect(this.cx*cell_width+title_width,this.y*cell_height+title_height,this.cw*cell_width,this.h*cell_height,5);//设定显示大小
reck2.graphics.endFill();
button.addChild(reck2);
mainView.addChild(button);//添加到画布
createjs.Ticker.setFPS(20);
createjs.Tween.get(button,{loop:true}).wait(200)
.to({scaleX:0,scaleY:0})
.wait(200)
.to({scaleX:0,scaleY:0},200,createjs.Ease.bounceInOut);//添加闪烁频率
createjs.Ticker.addEventListener("tick",stage);