What does addEvent() do? I can't imagine that use case.
> task = createObject("component", "task");
> task.addListener("complete", obj, method, args);
If task extends edmund.Edmund, that works (use addEventListener() or
register() to add the handler). Then you can say
task.dispatch("complete"). Otherwise Edmund stands "aside" from those
components as an event bus and you add listeners / dispatch events
directly via Edmund. You can
> Looking at this, it appears that register() is the equivalent of my
> addEvent() and dispatch() is the equivalent of my fireEvent(). But
> where's the equivalent of the addListener() ?
No, register() is addEventListener(). I've no idea what your addEvent() is.
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood