actionscript-3 - 减去(屏蔽掉?)一个圆形的路径

标签 actionscript-3 flash apache-flex graphics

我正在使用 Spark:Path 在 Flex 中绘制路径。

我想从这条路径中减去一个圆形,如下图所示:

enter image description here

(路径又黑又宽)

有什么想法吗?

我尝试使用 Shape 对象创建一个蒙版,但无法完全创建一个带有圆孔的蒙版。

最佳答案

找到了。

不涉及面具。

我采用了 Path 并在其周围包裹了一个 Group:

<s:Group blendMode="layer">
    <s:Path id="connector" ... />
    <s:Ellipse id="hole" blendMode="erase">

我将 blendMode 设置为“layer”,并使用 blendMode erase 添加了一个椭圆 after

关于actionscript-3 - 减去(屏蔽掉?)一个圆形的路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10029613/

相关文章:

actionscript-3 - AS3 中的 PBKDF2WithHmacSHA1

actionscript-3 - YouTUBE API for Flash不起作用

apache-flex - 使用 ItemRenderer 在 Tilelist 中的拖放问题

java - 为什么 gwt 会越来越受欢迎?

actionscript-3 - 从SoundChannel对象AS3 Flash保存声音

actionscript-3 - Flash AS3 - SoundChannel 错误 #1009

css - jQuery 对话框中的 Youtube 视频始终位于其他内容之上

flash - 如何从 Adob​​e Flex Builder RichTextEditor 获取 HTML 文本?

html - 使用 wmode ="direct"在 SWF 对象上分层 HTML 元素

apache-flex - 如何禁用 Flex 组件中的水平滚动条?