I don’ t think we support setting mask from MXML.  You may need to addChild and 
size it.


On 4/29/10 1:40 AM, "Haykel BEN JEMIA" <[email protected]> wrote:






Hi,

I'm trying to create some sort of sprite using the Flex 4 'Path' graphic 
element. The idea is to create the Path element that defines the visual look of 
the sprite, then another one with the same properties in a Group but using a 
black color with alpha set to 1. Then use this group as the mask for the sprite 
and set the mask type to 'alpha'. This also works but only when the sprite has 
the position (0, 0). When it is moved, it is displayed correctly but mouse 
interaction is broken.

Please find an example here:
http://www.allmas-tn.com/files/tests/fxgtests/FXGTests.html

The application has 'view source' enabled.

Any idea why even though the mask is correct (because the geometry is displayed 
and not masked out), mouse interaction is broken when the object is moved?

Thanks,

Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com







--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui

Reply via email to