How to fire an event

You can fire an event just through calling BTTEventMng.prototype.fireEvent(eventName). Take the following block of code as an example, you can fire event event1:
var em = new BTTEventMng();
em.addEvents("event1","event2");//publish two events named “event1” and “event2”
em.addListener("event1",listener,window);
function listener(arg){
	//alert(arg);
}
em.fireEvent("event1","hello");

And you will see:

the result of firing event1