touch event problem.

I hope that only top layer can be receive touch event.
I want to make modal dialog or modal view.
How can I do?

Plz help me!

disable the touch events on all the other layers? except the top oneā€¦ and enable them when the button on modal dialog is clicked?