通过加入背景色MovieClip 来实现Background变化效果,从而避开这个问题。
我找见更好的办法是 用Graphics.Fill的方法 来绘制背景色
var rectangle : Rectangle = this.getBounds(this);
this.graphics.beginFill(0x333333);
this.graphics.drawRect(0,0,rectangle.width,rectangle.height);
addChild(mBrandImage);
绘制完背景色 再加入图片,这样就不会出现讨厌的图片拉伸白边了。
Flash背景绘制技巧
本文介绍了一种使用Graphics.Fill方法在Flash中绘制背景色的技术,以此避免图片拉伸产生的白边问题。通过定义矩形区域并填充颜色,再将图片添加到已绘制背景之上,可以有效解决这一显示难题。

被折叠的 条评论
为什么被折叠?



