From the Corona documention, isHitTestable is described as follows:
Allows an object to continue to receive hit events even if it is not visible. If true, objects will receive hit events regardless of visibility; if false, events are only sent to visible objects. Defaults to false.
Just to clarify, a “hit” event is referring to a touch or tap, correct? I want to clarify this isn’t referring to a physics “hit” (in which case I believe “isBodyActive” and similar commands would be applied).
Also, “visibility” can obviously be accomplished through two ways:
"object.alpha = 0"[/code] or [code]"object.isVisible = false".
My testing seems to indicate Corona doesn’t care which method is used in regards to “isHitTestable”. No matter how the object has been made invisible, taps and touches shouldn’t be received on these objects. Has this been proven and tested as true in other people’s experience?
In other words, set its alpha to 0 or set it to “isVisible=false” and (unless “isHitTestable=true”) the object stops receiving hits?
Hopefully somebody can clarify this better.
Brent
[import]uid: 9747 topic_id: 8820 reply_id: 308820[/import]
