如何创建在AS3口罩? [英] How to create masks in AS3?

查看:106
本文介绍了如何创建在AS3口罩?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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?

这篇关于如何创建在AS3口罩?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆