Question

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 show the sprite that is doing the mask?

Was it helpful?

Solution 2

apparently there is no way to make the mask visible

OTHER TIPS

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>

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top