<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>遮罩 on SOULBOX</title><link>https://blog.soulbox.cn/tags/%E9%81%AE%E7%BD%A9/</link><description>Recent content in 遮罩 on SOULBOX</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Sun, 16 Oct 2022 11:31:49 +0800</lastBuildDate><atom:link href="https://blog.soulbox.cn/tags/%E9%81%AE%E7%BD%A9/index.xml" rel="self" type="application/rss+xml"/><item><title>flex中使用mask遮罩</title><link>https://blog.soulbox.cn/posts/flex%E4%B8%AD%E4%BD%BF%E7%94%A8mask%E9%81%AE%E7%BD%A9/</link><pubDate>Thu, 17 Jan 2013 20:09:55 +0800</pubDate><guid>https://blog.soulbox.cn/posts/flex%E4%B8%AD%E4%BD%BF%E7%94%A8mask%E9%81%AE%E7%BD%A9/</guid><description>//先画一个图形作为遮罩，规定显示的范围 &amp;lt;mx:Canvas width=&amp;#34;500&amp;#34; height=&amp;#34;30&amp;#34; backgroundColor=&amp;#34;#ff0000&amp;#34; id=&amp;#34;maskCanvas&amp;#34; horizontalCenter=&amp;#34;0&amp;#34;/&amp;gt; //要应用遮罩的对象，用mask={“……”}引用： &amp;lt;s:Label x=&amp;#34;-300&amp;#34; y=&amp;#34;9&amp;#34; height=&amp;#34;12&amp;#34; mask=&amp;#34;{maskCanvas}&amp;#34; text=&amp;#34;这里是要显示的文字&amp;#34; styleName=&amp;#34;f12 greenWord&amp;#34;/&amp;gt;</description></item></channel></rss>