开发者

Flex unable to see mask

I have two sprites, the first is the mask and the second on is going to be masked by the first. Right now I can see the second sprite that is masked, but not the first that is doing the masking. Is there a way to开发者_Python百科 show the sprite that is doing the mask?


I don't know If I understand your question, but that's the point of masks. Those are invisible. On the other hand, in Flex Builder I can see masks in Design mode:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Canvas width="100" height="100" backgroundColor="0xFF6644" id="mask1"/>
<mx:Canvas width="100" height="100" backgroundColor="0x4466FF" x="30" y="20" mask="{mask1}"/>
</mx:Application>


apparently there is no way to make the mask visible


Do you need to show the mask object as a demo of some sort ?

You could just create another instance of the mask and stick on top, maybe make it transparent of change it's blendMode so the elements bellow are visible.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜