重叠项目的 Flash 透明度

发布于 2024-09-18 10:59:25 字数 148 浏览 2 评论 0原文

在 Flash 中,我有一个包含多个重叠子项的容器。当我给这个容器设置 alpha 值 0.5 时,可以看到一些子容器位于与它们重叠的其他容器后面。我宁愿能够将整个事物作为合成图像并以这种方式混合。

有什么想法吗?父容器上的cacheAsBitmap 没有任何效果。

In Flash, I have a container with several overlapping children. When I give this container an alpha value of .5, some of the children can be seen behind others that overlap them. I would rather be able to take the whole thing as a composite image and blend it that way.

Any ideas? cacheAsBitmap on the parent container doesn't have any effect.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

兔小萌 2024-09-25 10:59:25

混合模式.层

幻梦 2024-09-25 10:59:25

好吧,使用 Bitmap.draw() 函数...然后只是对该图像进行 Alpha 处理。

例如,将其放入 MC 中并为其指定 alpha 值(例如)。

Well, use Bitmap.draw() function... And then just alpha that image.

Like, put it into a MC and give an alpha value to it (for example).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文