I apologize if there is already a good post on this and I’ve missed it.
I’ve been studying code and haven’t found a good tutorial on how to use a single function to handle touch events for multiple objects.
My example scenario is a function to move a rect around the screen with your finger. When it overlaps another rect that has the touch event associated with the same function, the function responds to it causing the began event to fire on the underlying rect. I’ve seen forum post about using return true, but nothing in the docs (at least that I have found about that) and I have seen in examples where people set the isFocus() attribute, but I haven’t found a good explanation on how the recommended way to do this is, and how it works.
Any help would be greatly appreciated understanding this.
Thanks
Pep [import]uid: 23182 topic_id: 9801 reply_id: 309801[/import]
[import]uid: 3826 topic_id: 9801 reply_id: 35713[/import]