本文介绍了闪光倒置的面具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在寻找一种简单的方法来反转闪光灯中的面具。它只是惊人的,它没有这个功能。
我只是真的需要绘制形状,下面的任何东西(层)不会显示出来。
有什么建议?
解决方案要在代码中创建一个反转蒙版,请执行以下操作:
在Flash Professional IDE中创建反转蒙版选择选择Display - >Blending - >Layer然后选择你的蒙版,并选择Display - >Blending - >Erase你会看到这样的:I've been looking for a simple way to invert a mask in flash. Its just amazing how it doesn't have this feature.
I just really need to paint shape and whatever is below (in layers) wont show up.
Any suggestions?
解决方案To create an inverted mask in code do the following
private function createInvertedMask(mcToBeMasked:MovieClip):void { mcToBeMasked.blendMode = BlendMode.LAYER; var invertedMask:Sprite = new Sprite(); invertedMask.graphics.beginFill(0x0, 1); invertedMask.graphics.drawRect(640, 395, 630, 395); invertedMask.blendMode = BlendMode.ERASE; mcToBeMasked.addChild(invertedMask); }To create an inverted mask in the Flash Professional IDE Choose the properties panel of the image you want masked, select "Display" -> "Blending" -> "Layer" Then select your mask, and choose "Display -> "Blending" -> "Erase" You'll see something like this:
更多推荐
闪光倒置的面具
发布评论