我在 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});
是否可以扩展图像以使其保持干净并且边框保持完整?