Christian Heilmann describes an approach to building complex web application by basing them around events, particularly around YUI's CustomEvent class.