Hmm, maybe a repeat for each object that the touch is on.
First set var selected of objects and scene variable to 0, then the for each loop:
If zorder of object > scene variable
Do +1 to a scene variable.
At the end of the loop, if zorder=scene var-1
Set var selected of object to 1.
Then your click activate event on objects with var selected=1