I’m not sure the player cares about stroke edges when doing clip masks. Clip masks are basically scanline edge detection algorithms.
On 4/29/10 12:20 PM, "Haykel BEN JEMIA" <[email protected]> wrote: Seems to be related to this bug: https://bugs.adobe.com/jira/browse/SDK-25492 I have tried to use clip masking instead of alpha masking, mouse behavior is correct, but there are problems with the masking in the stroke region! Haykel Ben Jemia Allmas Web & RIA Development http://www.allmas-tn.com On Thu, Apr 29, 2010 at 7:16 PM, Haykel BEN JEMIA <[email protected]> wrote: Same result. Actually the mask is correct, because if I add a Rect to fill the component, it is being masked correctly and only the portion under the Path is displayed. The only thing that's not working is the mouse interaction when the component is not at position (0,0). To summarize again: * At position (0,0), everything works correctly. * At any other position, display masking is correct but mouse behaves incorrectly. This sounds like a bug, any thoughts? Haykel Ben Jemia Allmas Web & RIA Development http://www.allmas-tn.com On Thu, Apr 29, 2010 at 6:07 PM, Alex Harui <[email protected]> wrote: 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] <http://[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

