0
我在as3中制作了一个圆角矩形,并希望通过点击进行扩展。这是我使用的代码:动态扩展形状
var lesBg:Sprite = new Sprite();
with (lesBg.graphics) {
lineStyle(3, 0x61b157);
beginFill(0xececec);
drawRoundRect(0,0,190,52*les.duur, 10,10);
endFill();
}
currentPanel.addChild(lesBg);
当我点击它,我想它扩大到两倍的大小。我正在用TweenLite做这件事,但是当我展开它时,我会看到丑陋的像素化图像,并且边框也会展开。
Tweenlite.to(lesBg, 1,{width: 380});
是否可以扩大图像,使其保持干净,边框保持完好?