如何创建在AS3口罩?口罩

2023-09-08 15:24:25 作者:被偏爱的有恃无恐

objectToBeMasked.mask = maskObject;

objectToBeMasked.mask = maskObject;

好,简单的......但我可以看到maskObject,除非我设置其alpha为0,那么它不会通过让点击次数objectToBeMasked

Ok, simple... but I can SEE the maskObject unless I set its alpha to 0 and then it doesn't let clicks through to objectToBeMasked

和我见过的每一个教程中没有提到这个问题以及如何解决它,就好像它应该是显而易见的。

And every single tutorial that I've seen fails to mention this and how to solve it, as if it should be obvious.

我如何通过AS3掩盖对象,以便掩盖像面具像那些在IDE中添加?

How do I mask objects through AS3 so that the masks act like masks act like the ones added in the IDE?

推荐答案

您不应该看到的面具。也许面具,蒙面对象不在的时候,你正试图敷面膜的阶段。

You shouldn't see the mask. Probably the mask and the masked object are not on the stage at the time you are trying to apply the mask.

您可以将一些code在这里?

Can you pass on some code here?

 
精彩推荐