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?
A:
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>
itarato
2010-01-01 10:52:49
youre right, the question was not very clear. I re-worded the question to hopefully make it clearer
asawilliams
2010-01-04 17:37:09
once a clip is used as a mask, you can no longer display it if that's what you mean. use a duplicate, either a separate instance of a bitmapData clone using the draw() method, inserted into a Bitmap object and added to the display list
George Profenza
2010-01-07 18:07:39
A:
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.
George Profenza
2010-01-07 01:30:54
I ended up creating another instance and adding it to the parent before the child that was going to be masked.
asawilliams
2010-01-07 17:35:16