这是我尝试但未成功的:
generateBevel(playBarBackground);
function generateBevel(myMC)
{
var myBevel:BevelFilter = new BevelFilter();
myBevel.type = BitmapFilterType.INNER;
myBevel.angle = 45;
myBevel.distance = 5;
myBevel.highlightColor = 0x666666;
myBevel.shadowColor = 0x000000;
myBevel.blurX = 5;
myBevel.blurY = 5;
myBevel.strength = 100;
myMC.filters = [myBevel];
}
我也尝试过这样做而没有函数调用所在的代码但没有运气的函数。我只是想用函数做事,因为我有两个我想要修改的影片剪辑。