Have you tried declaring the materials in the class (as Fabrice
pointed out) and then compare in the click event handler?

Reply via email to