Mask problem

how would I mask a section of an object so only the visible part of the object is clickable? as at present even the invisible bit is clickable! which isnt very good!

any help wouyld be appreciated!