I’ve applied a mask to a a display group with some sprites inside. The masking is working, but it doesn’t look like the isHitTestMasked property has any effect.
http://screencast.com/t/3hdbFOAH3O The screen cast shows the mask image, and my app with the mask applied to the sprite and me clicking on the regions of the mask that are invisible.
The expected behavior would be for the sprite to not animate when those invisible parts are clicked.
I tested this in build 537.
Is anyone else having luck with it? [import]uid: 27183 topic_id: 11139 reply_id: 311139[/import]
This is the feature which made me go from trial to paid subscription! Please don’t forget this one. [import]uid: 70001 topic_id: 11139 reply_id: 43008[/import]
We have a fix, but it did not make the upcoming release. Instead it will be available in the next public daily build. [import]uid: 26 topic_id: 11139 reply_id: 47904[/import]
… ok, so i’m more waiting for that day than 8/2 now! any clues on when new daily builds will start back up? this is the 2nd major fix i’m looking for out of 'em.
[import]uid: 13859 topic_id: 11139 reply_id: 47924[/import]
[text]
Submitted on 13 Jul 2011 - 03:43
Submitted by user: culutas
Bug title: Masked images still generates touch events for invisible area
Bug description:
I am trying to generate touch events for non-rectangular shapes. i created
image and a mask, i applied the mask, the masked image successfully on the
screen. but it still generates touch events for invisible area.
isHitTestMasked set to true.
[/text]
And here is the reply i got for this bug report :
[text]
Hi culutas,
It’s confusing but the touch sensitive area corresponds to the mask image
shape and is therefore always rectangular, regardless of the actual image.
The masking is only visual. You can see this in the Flashlight sample project,
set the isHitTestMasked to true and you will be able to drag the flashlight by
the corners (even though you can’t see them).
Currently if you want to detect touches on a complex shape you must do this
either by simulating the contours of the object using other invisible objects,
or by writing your own custom touch listener.
We will try to improve our documentation to make this more clear.
Sorry for the confusion!
**Do I understand right? Reply says image masking is not supposed to mask touch events according to actual image but its rectengular shape. And in this thread i hear the opposite, that there is a bug in the sdk.
Do I get everything right? Again, are we talking about the same thing?**
[import]uid: 46529 topic_id: 11139 reply_id: 47948[/import]
I got the same response as Culutas(from the bug report i made), they said it’s because it’s a rectangular area always unless i create a fake shape to have the touch working as i wanted…
I haven’t tried out the current build to see if that works now how its suppossed to work… I will see [import]uid: 75034 topic_id: 11139 reply_id: 48695[/import]
Does anyone know if this masking problem with isHitTestedMasked is fixed yet? still not working in 617 [import]uid: 85717 topic_id: 11139 reply_id: 56662[/import]