This example uses more complex event handlers and the zEvent object.